/* eslint-disable @typescript-eslint/no-require-imports -- Next.js config commonly uses require */ const path = require("path"); /** @type {import('next').NextConfig} */ const nextConfig = { output: "standalone", // Required in a monorepo: tells Next.js to trace files from the repo root // so the standalone bundle includes files from packages/ outputFileTracingRoot: path.join(__dirname, "../.."), transpilePackages: ["@repo/convex", "@repo/types", "@repo/utils"], turbopack: { root: path.join(__dirname, "..", ".."), }, images: { remotePatterns: [ { protocol: "https", hostname: "res.cloudinary.com", pathname: "/**", }, ], }, // PPR: enable when using Next.js canary. Uncomment and add experimental_ppr to PDP page: // experimental: { ppr: "incremental" }, }; module.exports = nextConfig;