testing dynamic baseURL

This commit is contained in:
2025-09-19 15:33:15 +01:00
parent a226c51231
commit 8f6fba1e63
3 changed files with 16 additions and 5 deletions

6
src/utils/config.ts Normal file
View File

@@ -0,0 +1,6 @@
const rawCamBase = import.meta.env.VITE_CAM_BASE;
export const CAM_BASE =
rawCamBase && rawCamBase.trim().length > 0
? rawCamBase
: window.location.origin;