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: {
port: 3000,
open: true,
allowedHosts: true,
proxy: {
'/api': {
target: 'http://localhost:5001',