Prepare Kalendartool for MPM and disable invites

This commit is contained in:
Kühn
2026-10-08 15:06:22 +02:00
parent bc49c3074e
commit 556202575e
50 changed files with 905 additions and 836 deletions

8
lib/client-fetch.ts Normal file
View File

@@ -0,0 +1,8 @@
/** Fetch wrapper for absolute app paths when Next.js basePath is enabled. */
export function appFetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response> {
if (typeof input !== 'string' || !input.startsWith('/') || input.startsWith('//')) {
return fetch(input, init);
}
const basePath = process.env.NEXT_PUBLIC_APP_BASE_PATH ?? '';
return fetch(`${basePath}${input}`, init);
}