2026-03-10 23:35:33 -07:00
|
|
|
import { sentryOnBuildEnd } from "@sentry/react-router";
|
2025-10-10 23:04:50 -07:00
|
|
|
import type { Config } from "@react-router/dev/config";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
// Config options...
|
|
|
|
|
// Server-side render by default, to enable SPA mode set this to `false`
|
|
|
|
|
ssr: true,
|
2026-03-10 23:35:33 -07:00
|
|
|
|
2025-10-11 20:56:00 -07:00
|
|
|
future: {
|
|
|
|
|
v8_middleware: true,
|
|
|
|
|
},
|
2026-03-10 23:35:33 -07:00
|
|
|
|
|
|
|
|
buildEnd: async (
|
|
|
|
|
{
|
|
|
|
|
viteConfig: viteConfig,
|
|
|
|
|
reactRouterConfig: reactRouterConfig,
|
|
|
|
|
buildManifest: buildManifest
|
|
|
|
|
}
|
|
|
|
|
) => {
|
|
|
|
|
await sentryOnBuildEnd({
|
|
|
|
|
viteConfig: viteConfig,
|
|
|
|
|
reactRouterConfig: reactRouterConfig,
|
|
|
|
|
buildManifest: buildManifest
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-10-10 23:04:50 -07:00
|
|
|
} satisfies Config;
|