Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Change `API_COLLECT_ENDPOINT` to `COLLECT_API_ENDPOINT`

rohandebsarkarce6fd12f9f88
diff --git a/pages/_middleware.js b/pages/_middleware.js
index b30ff1d40..ee97c8f4e 100644
--- a/pages/_middleware.js
+++ b/pages/_middleware.js
@@ -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();
diff --git a/rollup.tracker.config.js b/rollup.tracker.config.js
index 491067eb2..9af920925 100644
--- a/rollup.tracker.config.js
+++ b/rollup.tracker.config.js
@@ -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 }),