Added COLLECT_API_HOST environment variable.

This commit is contained in:
Mike Cao 2024-03-17 20:42:39 -07:00
parent f6524392e2
commit 672d9281a9
2 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,8 @@ export default {
},
plugins: [
replace({
'/api/send': process.env.COLLECT_API_ENDPOINT || '/api/send',
'__COLLECT_API_HOST__': process.env.COLLECT_API_HOST || '',
'__COLLECT_API_ENDPOINT__': process.env.COLLECT_API_ENDPOINT || '/api/send',
delimiters: ['', ''],
preventAssignment: true,
}),