🩹(frontend) fix allowed hosts by Vite using the Tilt stack

When using nip.io for local development DNS mapping (which allows hostname-based
access to localhost), we need to explicitly allow these domains in Vite's server
configuration to prevent host security violations.

This check should be ignored when using https.
This commit is contained in:
lebaudantoine
2025-01-22 14:51:36 +01:00
committed by aleb_the_flash
parent bf28c5cb84
commit 126de638cd

View File

@@ -10,6 +10,7 @@ export default defineConfig(({ mode }) => {
server: {
port: parseInt(env.VITE_PORT) || 3000,
host: env.VITE_HOST || 'localhost',
allowedHosts: ['.nip.io'],
},
}
})