Allow all hosts in Vite config for reverse proxy

This commit is contained in:
_Yusaki 2026-03-13 00:37:15 +07:00
parent 452da00064
commit 238a639b01

View file

@ -7,6 +7,7 @@ export default defineConfig({
server: { server: {
port: 3000, port: 3000,
open: true, open: true,
allowedHosts: true,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:5001', target: 'http://localhost:5001',