fix: correct preview proxy target to cywl-scoring-backend:8876
All checks were successful
Deploy to Server / deploy (push) Successful in 1m53s

This commit is contained in:
爽哒哒
2026-03-21 10:55:29 +08:00
parent ee98408660
commit d3d65891b6

View File

@@ -33,27 +33,26 @@ export default defineConfig({
},
preview: {
host: '0.0.0.0',
port: 15173,
allowedHosts: ['market.quant-speed.com'],
port: 8890,
proxy: {
'/api': {
target: 'http://backend:8000',
target: 'http://cywl-scoring-backend:8876',
changeOrigin: true,
},
'/admin': {
target: 'http://backend:8000',
target: 'http://cywl-scoring-backend:8876',
changeOrigin: true,
},
'/static': {
target: 'http://backend:8000',
target: 'http://cywl-scoring-backend:8876',
changeOrigin: true,
},
'/media': {
target: 'http://backend:8000',
target: 'http://cywl-scoring-backend:8876',
changeOrigin: true,
},
'/judge': {
target: 'http://backend:8000',
target: 'http://cywl-scoring-backend:8876',
changeOrigin: true,
}
}