fix: next.js console warning due to output:standalone (#16087)

This commit is contained in:
Alex van Andel authored and GitHub committed 2024-08-06 11:38:24 +00:00
1 parent 5ce96c7704
commit c46905e9a7
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -172,7 +172,7 @@ const matcherConfigUserTypeEmbedRoute = {
/** @type {import("next").NextConfig} */
const nextConfig = {
output: "standalone",
output: process.env.BUILD_STANDALONE === "true" ? "standalone" : undefined,
experimental: {
// externalize server-side node_modules with size > 1mb, to improve dev mode performance/RAM usage
serverComponentsExternalPackages: ["next-i18next"],