mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Change API_COLLECT_ENDPOINT to COLLECT_API_ENDPOINT
This commit is contained in:
parent
1b60ca440e
commit
ce6fd12f9f
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import { NextResponse } from 'next/server';
|
import { NextResponse } from 'next/server';
|
||||||
|
|
||||||
function customCollectEndpoint(req) {
|
function customCollectEndpoint(req) {
|
||||||
const collectEndpoint = process.env.API_COLLECT_ENDPOINT;
|
const collectEndpoint = process.env.COLLECT_API_ENDPOINT;
|
||||||
|
|
||||||
if (collectEndpoint) {
|
if (collectEndpoint) {
|
||||||
const url = req.nextUrl.clone();
|
const url = req.nextUrl.clone();
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ export default {
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
replace({
|
replace({
|
||||||
'/api/collect': process.env.API_COLLECT_ENDPOINT || '/api/collect',
|
'/api/collect': process.env.COLLECT_API_ENDPOINT || '/api/collect',
|
||||||
delimiters: ['', ''],
|
delimiters: ['', ''],
|
||||||
}),
|
}),
|
||||||
buble({ objectAssign: true }),
|
buble({ objectAssign: true }),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue