mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
feat(mapillary): catalog, layer state, sources, key setup and build wiring
MAPILLARY_CLIENT_TOKEN is a public client token and reaches the browser through the explicit define block; ANTHROPIC_API_KEY stays server-side. Both appear in POWER UP with links to create them. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
3169d205d9
commit
70ebdeb783
7 files changed
+446
-14
No files matched your search
@@ -7,6 +7,7 @@ export function createBrowserViteConfig({
|
||||
publicDir,
|
||||
googleApiKey,
|
||||
cesiumToken,
|
||||
mapillaryToken,
|
||||
host = 'localhost',
|
||||
port = 4173,
|
||||
} = {}) {
|
||||
@@ -32,7 +33,15 @@ export function createBrowserViteConfig({
|
||||
define: {
|
||||
'import.meta.env.GOOGLE_MAPS_API_KEY': JSON.stringify(googleApiKey),
|
||||
'import.meta.env.CESIUM_ION_TOKEN': JSON.stringify(cesiumToken),
|
||||
// Mapillary client tokens are public by design (see SECURITY.md).
|
||||
'import.meta.env.MAPILLARY_CLIENT_TOKEN': JSON.stringify(
|
||||
mapillaryToken ?? '',
|
||||
),
|
||||
},
|
||||
// MapillaryJS is loaded on demand the first time a street-level image is
|
||||
// opened. Pre-bundle it so that first dynamic import never triggers a
|
||||
// dev-server re-optimization (which answers in-flight requests with 504).
|
||||
optimizeDeps: { include: ['mapillary-js'] },
|
||||
build: { chunkSizeWarningLimit: 1500 },
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user