import path from "node:path"; import type { NextConfig } from "next"; const nextConfig: NextConfig = { // Pin the workspace root. Turbopack infers it by walking up for a lockfile // and taking the outermost one, so an unrelated pnpm-lock.yaml anywhere above // the checkout (a stray one in $HOME is enough) silently relocates the root — // after which `@import "../../common/styles/tokens.css"` in app/globals.css // resolves outside the project and `next dev` fails to boot at all. Nothing // in this repo lives above the monorepo root, so pinning it costs nothing. turbopack: { root: path.join(__dirname, "..") }, output: "export", trailingSlash: true, images: { unoptimized: true }, staticPageGenerationTimeout: 600, // Increase timeout to 600 seconds transpilePackages: ["yt-dlp-transcript-common"], }; export default nextConfig;