Files
diskless-workstation/serving/kiosk-app/vite.config.js
T
2026-06-18 12:03:45 +00:00

20 lines
807 B
JavaScript

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,
},
})