SCOPENET Map viewer: shared canvas engine, launcher window and claim terrain, admin map card; BlueMap/Vantage UI removed
This commit is contained in:
25 files changed
+1387
-343
No files matched your search
@@ -1,12 +1,16 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
// In dev, API calls are proxied to a locally running panel (cargo run -p scopenet-panel).
|
||||
const target = process.env.PANEL_URL ?? 'http://localhost:8080';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
// The map viewer is shared with the launcher (repo root: shared/map).
|
||||
resolve: { dedupe: ['svelte'], alias: { '@scopenet/map': fileURLToPath(new URL('../../shared/map', import.meta.url)) } },
|
||||
server: {
|
||||
fs: { allow: ['../..'] },
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/api': target,
|
||||
|
||||
Reference in new issue
Block a user