From 85dd897f050493c817df14ab3280335dad9ad018 Mon Sep 17 00:00:00 2001 From: dengfuping Date: Fri, 20 Oct 2023 20:20:39 +0800 Subject: [PATCH] config(site): Define process.env.VERCEL_ANALYTICS_ID --- .dumirc.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.dumirc.ts b/.dumirc.ts index 77c2e5b70..4513d3e4e 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -16,6 +16,9 @@ export default defineConfig({ }, extraBabelPresets: [require.resolve('@emotion/babel-preset-css-prop')], outputPath: 'site', + define: { + 'process.env.VERCEL_ANALYTICS_ID': process.env.VERCEL_ANALYTICS_ID, + }, analytics: { ga_v2: 'G-81Y5XPZY2E', },