import type { NextConfig } from "next"; import path from "node:path"; const nextConfig: NextConfig = { images: { unoptimized: true, }, // Pin the Turbopack workspace root to this directory. Without this, Turbopack // infers it from the shell's cwd, which during Paperclip agent runs is the // paperclip project root — that misroutes CSS/source scanning and silently // strips Tailwind utility classes from the production bundle. turbopack: { root: path.resolve(import.meta.dirname), }, }; export default nextConfig;