Prototype commit
This commit is contained in:
commit
b2ffbe865e
29 changed files with 3438 additions and 0 deletions
39
web/vite.config.ts
Normal file
39
web/vite.config.ts
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
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'
|
||||
}
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue