From c47b244dc505c282648b75a69eb1b744a4786b57 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 21 Jul 2022 19:38:24 -0700 Subject: [PATCH] Fix tracker build for COLLECT_API_ENDPOINT. --- rollup.tracker.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rollup.tracker.config.js b/rollup.tracker.config.js index 9af9209257..5bc0961031 100644 --- a/rollup.tracker.config.js +++ b/rollup.tracker.config.js @@ -1,3 +1,4 @@ +import 'dotenv/config'; import buble from '@rollup/plugin-buble'; import replace from '@rollup/plugin-replace'; import { terser } from 'rollup-plugin-terser'; @@ -12,6 +13,7 @@ export default { replace({ '/api/collect': process.env.COLLECT_API_ENDPOINT || '/api/collect', delimiters: ['', ''], + preventAssignment: true, }), buble({ objectAssign: true }), terser({ compress: { evaluate: false } }),