Skip to content

Commit

Permalink
test: 배포 시 라우터 못찾는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Apr 15, 2023
1 parent b70db37 commit b1a080a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const Router = () => {
<Route path='convenient' element={<Convenient />} />
<Route path='option' element={<Tutorial />} />
</Route>
<Route path='*' element={<Error />} />
</Routes>
</BrowserRouter>
)
Expand Down
3 changes: 3 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"routes": [{ "src": "/[^.]+", "dest": "/", "status": 200 }]
}

1 comment on commit b1a080a

@vercel
Copy link

@vercel vercel bot commented on b1a080a Apr 15, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.