2023-12-05 13:55:25 -03:00
|
|
|
import { defineConfig, loadEnv } from 'vite'
|
2023-12-05 10:48:38 -03:00
|
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
2023-12-05 13:55:25 -03:00
|
|
|
const env = { ...loadEnv(null, process.cwd())}
|
2023-12-05 10:48:38 -03:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [svelte()],
|
2023-12-05 13:55:25 -03:00
|
|
|
|
|
|
|
server: {
|
|
|
|
host: '0.0.0.0',
|
|
|
|
watch: { usePolling: true },
|
|
|
|
port: env.VITE_PORT,
|
|
|
|
hmr: { clientPort: env.VITE_PORT_WS || env.VITE_PORT }
|
|
|
|
},
|
2023-12-05 10:48:38 -03:00
|
|
|
})
|