secureweb/sweb/vite.config.ts
Mahmoud Emad 467b098c4c 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.
2025-05-11 18:02:21 +03:00

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']
}
})