Skip to content

Commit

Permalink
Fix tracker build for COLLECT_API_ENDPOINT.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Jul 22, 2022
1 parent 250cdce commit c47b244
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rollup.tracker.config.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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 } }),
Expand Down

0 comments on commit c47b244

Please sign in to comment.