Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Disable standalone output on Vercel builds

Mike Caoba78b9a5c2af
diff --git a/next.config.ts b/next.config.ts
index d39ccb2fb..467703f29 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -9,6 +9,7 @@ const TRACKER_SCRIPT = '/script.js';
const RECORDER_SCRIPT = '/recorder.js';
const isProd = process.env.NODE_ENV === 'production';
+const isVercel = Boolean(process.env.VERCEL);
const apiUrl = process.env.API_URL || '';
const basePath = process.env.BASE_PATH || '';
@@ -219,7 +220,7 @@ export default withNextIntl({
selfRecord,
},
basePath,
- output: 'standalone',
+ output: isVercel ? undefined : 'standalone',
typescript: {
ignoreBuildErrors: true,
},