chore: upgrade frontend stack and CI to Node 22
Lint / Lint (push) Successful in 1m23s
Security / Secrets (gitleaks) (push) Successful in 3m7s
Security / Dependencies (Trivy) (push) Successful in 1m48s
Security / Code (Semgrep) (push) Successful in 3m20s
Tests / Dashboard checks (push) Failing after 1m42s
Tests / Go backend (push) Successful in 2m54s
Docker / Docker Build & Push (push) Successful in 10m7s

- Pin SvelteKit, adapter-static, and Svelte versions
- Refresh the frontend lockfile
This commit is contained in:
Gabriel20xx committed 2026-11-17 13:16:02 +01:00
1 parent 7cea6ebb1e
commit cf468ed833
9 files changed
+96 -126

No files matched your search

+13 -1
View File
@@ -3,6 +3,7 @@ import path from 'node:path';
import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import adapter from '@sveltejs/adapter-static';
// Real installed frontend dependency versions for the About page, resolved from
// node_modules (not the package.json semver range) so it can't drift from what's bundled.
@@ -29,7 +30,18 @@ const frontendTechStack = FRONTEND_TECH_STACK_PACKAGES.flatMap(({ name, pkg }) =
});
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
plugins: [
tailwindcss(),
sveltekit({
// SvelteKit 3 removed the $lib alias; keep it pointing at src/lib so imports stay unchanged.
alias: { $lib: 'src/lib' },
// Static SPA build: the Go server serves this output and falls back to
// index.html for any path so SvelteKit's client-side router can take over.
adapter: adapter({
fallback: 'index.html',
}),
}),
],
resolve: {
preserveSymlinks: true,
},