feat: Allow specifying allowed hosts in Vite config
- Adds `allowedHosts` option to Vite config for specifying allowed hosts during development. This is necessary for connecting to specific QA environments.
This commit is contained in:
parent
e2eb77c3b9
commit
467b098c4c
@ -2,12 +2,14 @@ import { defineConfig } from 'vite'
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
import { resolve } from 'path'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
resolve: {
|
||||
alias: {
|
||||
$lib: resolve('./src/lib')
|
||||
}
|
||||
},
|
||||
server: {
|
||||
allowedHosts: ['secureweb.gent01.qa.grid.tf']
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user