Change API_COLLECT_ENDPOINT to COLLECT_API_ENDPOINT

This commit is contained in:
rohandebsarkar committed 2022-07-04 15:52:59 +05:30
1 parent 1b60ca440e
commit ce6fd12f9f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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();