mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
18 lines
413 B
TypeScript
18 lines
413 B
TypeScript
import { defineConfig, loadEnv } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig(({ mode }) => {
|
|
const env = loadEnv(mode, process.cwd(), '');
|
|
|
|
const allowedHosts = env.VITE_ALLOWED_HOSTS?.split(',') || [];
|
|
|
|
return {
|
|
plugins: [react()],
|
|
server: {
|
|
host: true, // Allow external access
|
|
allowedHosts: allowedHosts,
|
|
}
|
|
}
|
|
})
|