Updated tracker script name and endpoint.

This commit is contained in:
Mike Cao committed 2023-03-15 16:27:05 -07:00
1 parent be8eb61f7f
commit 54051d7204
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -6,12 +6,12 @@ import { terser } from 'rollup-plugin-terser';
export default {
input: 'tracker/index.js',
output: {
file: 'public/umami.js',
file: 'public/script.js',
format: 'iife',
},
plugins: [
replace({
'/api/collect': process.env.COLLECT_API_ENDPOINT || '/api/collect',
'/api/send': process.env.COLLECT_API_ENDPOINT || '/api/send',
delimiters: ['', ''],
preventAssignment: true,
}),