-
I'm using next 12.3.0 with output: 'standalone' and pnpm. The Perhaps this could be fixed by following symlinks when copying the node_modules to the output? There is a reproduction repo here: https://github.com/jetbridge/next-pnpm-monorepo-repro Originally posted by @revmischa in #40150 (comment) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I think you have to use /** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
output: "standalone",
experimental: { outputFileTracingRoot: path.join(__dirname, '../'), }
};
module.exports = nextConfig; |
Beta Was this translation helpful? Give feedback.
I think you have to use
outputFileTracingRoot
if you are using a monorepo (the path points to the root of the monorepo)