- Adds `allowedHosts` option to Vite config for specifying allowed hosts during development. This is necessary for connecting to specific QA environments.
16 lines
314 B
TypeScript
16 lines
314 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte()],
|
|
resolve: {
|
|
alias: {
|
|
$lib: resolve('./src/lib')
|
|
}
|
|
},
|
|
server: {
|
|
allowedHosts: ['secureweb.gent01.qa.grid.tf']
|
|
}
|
|
})
|