Every page is now built as HTML from sitePages.ts, with a catch-all route for 404.html. Hooks that read the browser during render are safe for prerendering. The script step that keeps the CSP intact follows, so this build still has inline scripts and is not deployable yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
587 B
TypeScript
19 lines
587 B
TypeScript
import { StrictMode, startTransition } from 'react';
|
|
import { hydrateRoot } from 'react-dom/client';
|
|
import { StartClient } from '@tanstack/react-start/client';
|
|
import { startSentry } from './monitoring/sentry';
|
|
|
|
// Foutmeldingen naar Sentry, alleen op test en productie (M1). Dit bestand
|
|
// draait alleen in de browser, dus niet tijdens het prerenderen, en loopt voor
|
|
// op het hydrateren zodat ook vroege fouten gemeld worden.
|
|
startSentry();
|
|
|
|
startTransition(() => {
|
|
hydrateRoot(
|
|
document,
|
|
<StrictMode>
|
|
<StartClient />
|
|
</StrictMode>,
|
|
);
|
|
});
|