// Self-hosted HDRI environment map (drei's "city" preset, copied into public/env // so Vite emits it under the app base). The viewer must never depend on an // external CDN at runtime: drei's `` fetches the HDRI // from raw.githack.com, which the site CSP (connect-src 'self') blocks — and // because loads via Suspense, that rejected fetch throws and tears // down the whole WebGL canvas ("3D not working"). Pointing `files=` at this // same-origin URL keeps it within CSP. import.meta.env.BASE_URL makes it work // whether the app is served at "/" or under a subpath like "/demo/". export const LOCAL_ENVIRONMENT_HDR = `${import.meta.env.BASE_URL}env/potsdamer_platz_1k.hdr`;