Skip to content

Commit

Permalink
Add vercel config for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jan 6, 2024
1 parent 4b6c216 commit 3efa098
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions examples/react-router/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 2,
"routes": [
{
"handle": "filesystem"
},
{
"src": "/(.*)",
"dest": "/index.html",
"status": 200
}
],
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=0, must-revalidate"
}
]
}
],
"trailingSlash": false,
"cleanUrls": true
}
26 changes: 26 additions & 0 deletions examples/tanstack-router/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 2,
"routes": [
{
"handle": "filesystem"
},
{
"src": "/(.*)",
"dest": "/index.html",
"status": 200
}
],
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=0, must-revalidate"
}
]
}
],
"trailingSlash": false,
"cleanUrls": true
}

1 comment on commit 3efa098

@vercel
Copy link

@vercel vercel bot commented on 3efa098 Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

If `rewrites`, `redirects`, `headers`, `cleanUrls` or `trailingSlash` are used, then `routes` cannot be present.

Learn More: https://vercel.link/mix-routing-props

Please sign in to comment.