Better logic

This commit is contained in:
rohandebsarkar 2022-07-03 22:33:20 +05:30
parent c60ec2fb8b
commit 1b60ca440e
No known key found for this signature in database
GPG Key ID: 3DA3229799D1A181

View File

@ -10,9 +10,7 @@ export default {
},
plugins: [
replace({
'/api/collect': process.env.API_COLLECT_ENDPOINT
? process.env.API_COLLECT_ENDPOINT
: '/api/collect',
'/api/collect': process.env.API_COLLECT_ENDPOINT || '/api/collect',
delimiters: ['', ''],
}),
buble({ objectAssign: true }),