Yovach
Yovach
TtRPC
Created by Yovach on 5/1/2023 in #❓-help
Standalone Next.js 13.3.2 error
3 replies
TtRPC
Created by Yovach on 5/1/2023 in #❓-help
Standalone Next.js 13.3.2 error
I'm using Docker so I need to have the following next.config.js :
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
trailingSlash: true,
poweredByHeader: false,
swcMinify: true,
productionBrowserSourceMaps: false,
experimental: {
appDir: true,
esmExternals: true,
legacyBrowsers: false,
enableUndici: true,
outputFileTracingRoot: path.join(__dirname, '../../'),
},
output: "standalone",
};

export default nextConfig;
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
trailingSlash: true,
poweredByHeader: false,
swcMinify: true,
productionBrowserSourceMaps: false,
experimental: {
appDir: true,
esmExternals: true,
legacyBrowsers: false,
enableUndici: true,
outputFileTracingRoot: path.join(__dirname, '../../'),
},
output: "standalone",
};

export default nextConfig;
I'm doing the following steps: npm run build and node .next/standalone/apps/website/server.js NOTE: With Next.js 13.3.1, it's working EDIT: In Next.js 13.3.2, it seems to work without output: "standalone" I disabled appDir and it's working again, I'll report to Vercel.
3 replies