Minify JS and resolve accessibility issues (back to 100% in Lighthouse) (#4)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

Reviewed-on: #4
Co-authored-by: mifi <badmf@mifi.dev>
Co-committed-by: mifi <badmf@mifi.dev>
This commit was merged in pull request #4.
This commit is contained in:
2026-02-07 04:41:31 +00:00
committed by Mike Fitzpatrick
parent 11ff3dcff3
commit 864c9a735c
4 changed files with 121 additions and 25 deletions

View File

@@ -5,6 +5,12 @@ export default defineConfig({
plugins: [sveltekit()],
server: {
host: true, // listen on 0.0.0.0 so reachable from host (e.g. dev container, port forward)
port: 5173,
strictPort: false,
// Disable HMR WebSocket when using port forwarding (e.g. dev container); the tunnel
// often doesn't proxy WebSockets, causing repeated connection failures in the console.
// With csr: false we don't use client-side HMR anyway—refresh the page to see changes.
hmr: false,
},
preview: {
host: true,