docent/web/vite.config.ts
Pen Anderson 9884ccd9ed
Some checks are pending
check / frontend (push) Waiting to run
check / server (push) Waiting to run
Prototype commit
2026-05-05 09:29:40 -05:00

39 lines
793 B
TypeScript

import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()],
server: {
host: '0.0.0.0',
port: 5173,
strictPort: true,
allowedHosts: ['docent-dev.pentacle.games', 'localhost'],
hmr: {
protocol: 'wss',
host: 'docent-dev.pentacle.games',
clientPort: 443
},
watch: {
usePolling: true,
interval: 500
},
fs: {
strict: true,
allow: ['./src', './static', './node_modules', './.svelte-kit'],
deny: [
'.env',
'.env.*',
'**/.git/**',
'**/secrets/**',
'**/*.{pem,crt,key,age}',
'../server/**',
'../content/**'
]
},
proxy: {
'/api': 'http://localhost:8181',
'/audio': 'http://localhost:8181',
'/images': 'http://localhost:8181'
}
}
});