39 lines
793 B
TypeScript
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'
|
|
}
|
|
}
|
|
});
|