Add app
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
|
||||
// The kiosk loads the app at http://boot.fleet.lab/kiosk/ (the main serving
|
||||
// nginx reverse-proxies /kiosk/ -> this container). base must match that path
|
||||
// so emitted asset URLs are absolute under /kiosk/. Hash-based routing is used
|
||||
// (see src/lib/router.svelte.js) so deep links never hit the server — no SPA
|
||||
// fallback rewrite is needed through the proxy.
|
||||
export default defineConfig({
|
||||
base: '/kiosk/',
|
||||
plugins: [svelte(), tailwindcss()],
|
||||
build: {
|
||||
target: 'es2022',
|
||||
// Fully self-contained bundle (no CDN/fonts) so it renders on the
|
||||
// air-gapped boot LAN — the dnsmasq sinkhole blocks external call-home.
|
||||
assetsInlineLimit: 4096,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user