Better logic
This commit is contained in:
@@ -10,9 +10,7 @@ export default {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
replace({
|
replace({
|
||||||
'/api/collect': process.env.API_COLLECT_ENDPOINT
|
'/api/collect': process.env.API_COLLECT_ENDPOINT || '/api/collect',
|
||||||
? process.env.API_COLLECT_ENDPOINT
|
|
||||||
: '/api/collect',
|
|
||||||
delimiters: ['', ''],
|
delimiters: ['', ''],
|
||||||
}),
|
}),
|
||||||
buble({ objectAssign: true }),
|
buble({ objectAssign: true }),
|
||||||
|
|||||||
Reference in New Issue
Block a user