* 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
20 lines
629 B
TypeScript
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;
|