consider SERVER_NAME in allowedHosts

This commit is contained in:
Yusur 2025-11-02 09:27:58 +01:00
parent 80ecfd6747
commit 0ccfdbb78e
2 changed files with 15 additions and 5 deletions

View file

@ -25,6 +25,7 @@ export default defineConfig({
changeOrigin: true,
xfwd: true
},
}
},
allowedHosts: (process.env.SERVER_NAME||'').split(':')
}
});