Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions integration/templates/react-router-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"typecheck": "react-router typegen && tsc --build --noEmit"
},
"dependencies": {
"@react-router/node": "8.0.1",
"@react-router/serve": "8.0.1",
"@react-router/node": "8.3.0",
"@react-router/serve": "8.3.01",
"isbot": "^5.1.36",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-router": "8.0.1"
"react-router": "8.3.0"
},
"devDependencies": {
"@react-router/dev": "8.0.1",
"@react-router/dev": "8.3.0",
"@types/node": "^22",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
Expand Down
9 changes: 1 addition & 8 deletions integration/templates/react-router-node/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@ import { reactRouter } from '@react-router/dev/vite';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig(({ command }) => ({
export default defineConfig(() => ({
plugins: [
reactRouter(),
tsconfigPaths({
projects: ['./tsconfig.json'],
}),
],
// Dev-only: `react-router dev` externalizes @clerk/react-router for SSR, so Node
// loads it with a different react-router export condition (production) than Vite
// gives the app (development). That yields two react-router instances and breaks
// the Router context. noExternal routes Clerk through Vite so they share one
// instance. Not applied to `build`, where bundling Clerk fails and the production
// server resolves a single react-router instance anyway.
...(command === 'serve' ? { ssr: { noExternal: ['@clerk/react-router'] } } : {}),
server: {
port: process.env.PORT ? Number(process.env.PORT) : undefined,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"peerDependencies": {
"react": "catalog:peer-react",
"react-dom": "catalog:peer-react",
"react-router": "^7.9.0 || ^8.0.0"
"react-router": "^7.9.0 || ^8.3.0"
},
"engines": {
"node": ">=20.9.0"
Expand Down
Loading