Files
AndreaSlopFotografie/web/src/client.tsx
T
SluijsensandClaude Opus 5.5 c1e90f0768 Moves the app to TanStack Start with prerendering
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>
2026-10-31 17:58:54 +01:00

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>,
);
});