feat: 本地Docker支持源码热更新和独立追溯地址

This commit is contained in:
Nixevol
2026-09-20 02:13:48 +08:00
parent 4dab600062
commit c4864992e8
10 changed files with 176 additions and 25 deletions
+3
View File
@@ -38,6 +38,9 @@ export default defineConfig({
server: {
port: 5174,
host: true,
strictPort: true,
watch: process.env.DOCKER_DEV === '1' ? { usePolling: true, interval: 300 } : undefined,
hmr: process.env.VITE_HMR_CLIENT_PORT ? { clientPort: Number(process.env.VITE_HMR_CLIENT_PORT) } : undefined,
proxy: {
'/api': { target: 'http://localhost:3000', changeOrigin: true },
'/uploads': { target: 'http://localhost:3000', changeOrigin: true },