Skip to content

Commit

Permalink
Add vercel preset
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Feb 12, 2025
1 parent 6315482 commit 2f29823
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fixtures/react-router-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"react-router": "^7.1.5",
"vite": "^5.4.11",
"@react-router/node": "^7.1.5"
"@react-router/node": "^7.1.5",
"@vercel/react-router": "^1.0.2"
},
"private": true,
"type": "module",
Expand Down
6 changes: 6 additions & 0 deletions fixtures/react-router-vercel/react-router.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { Config } from "@react-router/dev/config";
import { vercelPreset } from "@vercel/react-router/vite";

export default {
presets: [vercelPreset()],
} satisfies Config;
1 change: 1 addition & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"@types/yargs": "^17.0.33",
"@vercel/react-router": "^1.0.2",
"@vitejs/plugin-react": "^4.3.4",
"@webstudio-is/http-client": "workspace:*",
"@webstudio-is/image": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/templates/react-router-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"deploy": "npx vercel deploy"
},
"dependencies": {
"@react-router/node": "^7.1.5"
"@react-router/node": "^7.1.5",
"@vercel/react-router": "^1.0.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { Config } from "@react-router/dev/config";
import { vercelPreset } from "@vercel/react-router/vite";

export default {
presets: [vercelPreset()],
} satisfies Config;
22 changes: 22 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f29823

Please sign in to comment.