Wires the script step and preview server into the build
The build now moves inline scripts and fails on a violation. Lighthouse audits /404.html, because it refuses a page with a real 404 status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-6
@@ -1,15 +1,11 @@
|
||||
/// <reference types="vitest/config" />
|
||||
import { defineConfig } from 'vite';
|
||||
import { configDefaults, defineConfig } from 'vitest/config';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
|
||||
import { NOT_FOUND_FILE, NOT_FOUND_PATH } from './config/pageFiles.ts';
|
||||
import { securityHeaders } from './config/securityHeaders.ts';
|
||||
import sitemapPlugin from './config/sitemapPlugin.ts';
|
||||
import sitePages from './src/sitePages.ts';
|
||||
|
||||
// Tijdelijk hier; Stap 7 maakt config/pageFiles.ts, Stap 24 schakelt over
|
||||
const NOT_FOUND_PATH = '/404';
|
||||
const NOT_FOUND_FILE = '404.html';
|
||||
|
||||
// 100% dekking voor de pure functies (NFR-M-02); de rest wordt alleen gerapporteerd
|
||||
const fullCoverage = {
|
||||
statements: 100,
|
||||
@@ -74,6 +70,7 @@ export default defineConfig(({ mode }) => ({
|
||||
globalSetup: ['./config/testSeed.ts'],
|
||||
setupFiles: ['./src/test/setup.ts'],
|
||||
css: false,
|
||||
exclude: [...configDefaults.exclude, 'e2e/**'],
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
include: ['src/**/*.{ts,tsx}', 'config/**/*.ts'],
|
||||
|
||||
Reference in New Issue
Block a user