mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-15 16:01:34 -05:00
15 lines
459 B
TypeScript
15 lines
459 B
TypeScript
import type { Config } from "@react-router/dev/config";
|
|
import { sentryOnBuildEnd } from "@sentry/react-router";
|
|
|
|
// xxx: if we remove routeDiscovery, need to add caching in cloudflare
|
|
export default {
|
|
splitRouteModules: true,
|
|
buildEnd: async ({ viteConfig, reactRouterConfig, buildManifest }) => {
|
|
await sentryOnBuildEnd({
|
|
viteConfig: viteConfig,
|
|
reactRouterConfig: reactRouterConfig,
|
|
buildManifest: buildManifest,
|
|
});
|
|
},
|
|
} satisfies Config;
|