From c46905e9a70a541f442f42b10e77d359c398bfbf Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Tue, 6 Aug 2024 13:38:24 +0200 Subject: [PATCH] fix: next.js console warning due to output:standalone (#16087) --- apps/web/next.config.js | 2 +- turbo.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 059070135f..2b7d2ecb0b 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -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"], diff --git a/turbo.json b/turbo.json index 54489b4f86..1c7fe30de1 100644 --- a/turbo.json +++ b/turbo.json @@ -41,7 +41,8 @@ "STRIPE_PREMIUM_PLAN_PRODUCT_ID", "STRIPE_TEAM_MONTHLY_PRICE_ID", "STRIPE_ORG_MONTHLY_PRICE_ID", - "NEXT_PUBLIC_API_V2_URL" + "NEXT_PUBLIC_API_V2_URL", + "BUILD_STANDALONE" ] }, "@calcom/web#dx": {