Skip to content

Commit 3a3b829

Browse files
committed
Use react-router CLI in playground
1 parent 2e22e19 commit 3a3b829

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

playground/rsc-vite-framework/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"dev": "vite",
8-
"build": "vite build --app",
7+
"dev": "react-router dev",
8+
"build": "react-router build",
99
"start": "cross-env NODE_ENV=production node start.js",
1010
"typecheck": "react-router typegen && tsc"
1111
},
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { Config } from "@react-router/dev/config";
2+
3+
export default {
4+
future: {
5+
unstable_viteEnvironmentApi: true,
6+
},
7+
} satisfies Config;

0 commit comments

Comments
 (0)