fix(analytics, perf): fix umami proxy route redirect and remove blocking 10MB video preload to fix pagespeed

This commit is contained in:
2026-06-21 10:44:08 +02:00
parent de8f41cc6d
commit 9edfe24509
4 changed files with 10 additions and 29 deletions

View File

@@ -40,7 +40,10 @@ export async function POST(request: NextRequest) {
website: websiteId,
};
const umamiEndpoint = config.analytics.umami.apiEndpoint;
let umamiEndpoint = config.analytics.umami.apiEndpoint || 'https://analytics.infra.mintel.me';
if (!umamiEndpoint.startsWith('http')) {
umamiEndpoint = `https://${umamiEndpoint}`;
}
// Log the event (internal only)
logger.debug('Forwarding analytics event', {