feat: GeoScene frontend POC + Docker deploy for remote host
Migrate maps to @geoscene/core, polish monitoring/alerts UX, fix timeline basemap flicker and district alert regions, and ship compose/nginx Docker deploy assets with CBPOA_ROOT data mounts. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -9,6 +9,9 @@ export default defineConfig({
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ['@geoscene/core'],
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
allowedHosts: ['alpha.hyh.ink'],
|
||||
@@ -17,6 +20,17 @@ export default defineConfig({
|
||||
target: 'http://localhost:8000',
|
||||
changeOrigin: true,
|
||||
},
|
||||
// Same-origin Gaode tiles — WebTileLayer needs CORS; direct autonavi URLs fail.
|
||||
'/basemap-gaode': {
|
||||
target: 'https://webrd01.is.autonavi.com',
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => {
|
||||
const m = p.match(/^\/basemap-gaode\/(\d+)\/(\d+)\/(\d+)/);
|
||||
if (!m) return p;
|
||||
const [, z, x, y] = m;
|
||||
return `/appmaptile?lang=zh_cn&size=1&scale=1&style=8&z=${z}&x=${x}&y=${y}`;
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
preview: {
|
||||
|
||||
Reference in New Issue
Block a user