Completes the front-end shell with footer, status pages and SEO

Adds the footer, back-to-top button, skip link, placeholder routes,
404 and error pages inside the shell, plus per-page SEO from a single
page registry (canonical URLs, Open Graph image, JSON-LD, generated
sitemap.xml and robots.txt).

Theme tokens and recipes replace repeated styling, the hero loads only
the active and neighbouring slides, and the e-mail address is joined
in the browser to keep it out of the HTML and bundle.

Adds Vitest with property-based (fast-check) and axe tests, ESLint,
security headers for dev and preview, Lighthouse CI and a `pnpm check`
script that runs all quality gates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-18 17:05:02 +02:00
co-authored by Claude Opus 5.5
parent b5b7f3b3db
commit 4d6408b607
99 changed files with 7883 additions and 414 deletions
+50
View File
@@ -0,0 +1,50 @@
/// <reference types="vitest/config" />
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { tanstackRouter } from '@tanstack/router-plugin/vite';
import { securityHeaders } from './config/securityHeaders.ts';
import sitemapPlugin from './config/sitemapPlugin.ts';
// 100% dekking voor de pure functies (NFR-M-02); de rest wordt alleen gerapporteerd
const fullCoverage = {
statements: 100,
branches: 100,
functions: 100,
lines: 100,
};
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
// Please make sure that '@tanstack/router-plugin' is passed before '@vitejs/plugin-react'
tanstackRouter({
target: 'react',
autoCodeSplitting: true,
}),
react(),
sitemapPlugin(),
],
resolve: {
tsconfigPaths: true,
},
// Dev: zelfde headers, met alleen de uitzonderingen die Vite nodig heeft
server: { headers: securityHeaders('development') },
// Preview: de strenge productieset
preview: { headers: securityHeaders('production') },
test: {
environment: 'jsdom',
globalSetup: ['./config/testSeed.ts'],
setupFiles: ['./src/test/setup.ts'],
css: false,
coverage: {
provider: 'v8',
include: ['src/**/*.{ts,tsx}', 'config/**/*.ts'],
exclude: ['src/routeTree.gen.ts', 'src/test/**', '**/*.test.*'],
thresholds: {
'src/lib/**': fullCoverage,
'src/seo.ts': fullCoverage,
'src/sitemap.ts': fullCoverage,
},
},
},
});