diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 059070135faaab..2b7d2ecb0b2847 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 54489b4f8637f6..1c7fe30de1bfab 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": {