Files
plane/apps/admin/react-router.config.ts
T
AaronandGitHub 7a5838c539 [WEB-6492] chore: upgrade to rolldown-vite, react-router 7.13.1, and enable v8 future flags (#6148)
* chore: upgrade to rolldown-vite, react-router 7.13.1, and enable v8 future flags

- Alias vite to [email protected] for faster Rust-powered builds
- Upgrade react-router, @react-router/dev, @react-router/node,
  @react-router/serve from 7.13.0 to 7.13.1
- Upgrade @vercel/react-router from 1.2.3 to 1.2.5
- Enable stable v8 future flags across web, space, and admin:
  v8_middleware, v8_splitRouteModules, v8_viteEnvironmentApi

* chore: run pnpm dedupe to reduce duplicate resolutions
2026-03-03 20:20:27 +05:30

20 lines
629 B
TypeScript

import type { Config } from "@react-router/dev/config";
import { vercelPreset } from "@vercel/react-router/vite";
import { joinUrlPath } from "@plane/utils";
const basePath = joinUrlPath(process.env.VITE_ADMIN_BASE_PATH ?? "", "/") ?? "/";
export default {
appDirectory: "app",
basename: basePath,
// If running on Vercel, use the Vercel preset
presets: process.env.VERCEL === "1" ? [vercelPreset()] : [],
future: {
v8_middleware: true,
v8_splitRouteModules: true,
v8_viteEnvironmentApi: true,
},
// Admin runs as a client-side app; build a static client bundle only
ssr: false,
} satisfies Config;