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:
Mahmoud Emad 2025-05-11 18:02:21 +03:00
parent e2eb77c3b9
commit 467b098c4c

View File

@ -2,12 +2,14 @@ import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte' import { svelte } from '@sveltejs/vite-plugin-svelte'
import { resolve } from 'path' import { resolve } from 'path'
// https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [svelte()], plugins: [svelte()],
resolve: { resolve: {
alias: { alias: {
$lib: resolve('./src/lib') $lib: resolve('./src/lib')
} }
},
server: {
allowedHosts: ['secureweb.gent01.qa.grid.tf']
} }
}) })