Change API_COLLECT_ENDPOINT to COLLECT_API_ENDPOINT
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
|
||||
function customCollectEndpoint(req) {
|
||||
const collectEndpoint = process.env.API_COLLECT_ENDPOINT;
|
||||
const collectEndpoint = process.env.COLLECT_API_ENDPOINT;
|
||||
|
||||
if (collectEndpoint) {
|
||||
const url = req.nextUrl.clone();
|
||||
|
||||
@@ -10,7 +10,7 @@ export default {
|
||||
},
|
||||
plugins: [
|
||||
replace({
|
||||
'/api/collect': process.env.API_COLLECT_ENDPOINT || '/api/collect',
|
||||
'/api/collect': process.env.COLLECT_API_ENDPOINT || '/api/collect',
|
||||
delimiters: ['', ''],
|
||||
}),
|
||||
buble({ objectAssign: true }),
|
||||
|
||||
Reference in New Issue
Block a user