添加瓦片代理

This commit is contained in:
龙澳
2026-03-31 14:41:17 +08:00
parent f26c930099
commit 4eca349d12
6 changed files with 72 additions and 2 deletions

View File

@@ -28,7 +28,13 @@ export default defineConfig({
}
],
server: {
port: 5173
port: 5173,
proxy: {
'/tiles': {
target: 'http://localhost:8080',
changeOrigin: true
}
}
},
build: {
outDir: resolve(__dirname, '../dist')