mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Fix tracker build for COLLECT_API_ENDPOINT.
This commit is contained in:
parent
250cdce306
commit
c47b244dc5
1 changed files with 2 additions and 0 deletions
|
|
@ -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 } }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue