Skip to content

Commit

Permalink
fix: vercel routes
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Nov 4, 2023
1 parent f5936e2 commit 197e63d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const router = createBrowserRouter([
element: <HomePage/>,
},
{
path: '/browse-files/:password?/*',
path: '/browse-files/:password/*?',
element: <BrowseFiles/>,
},
]);
Expand Down
8 changes: 8 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rewrites": [
{
"source": "/browse-files/(.*)",
"destination": "/"
}
]
}

0 comments on commit 197e63d

Please sign in to comment.