Skip to content

Commit

Permalink
add missing '/' character for "base" prop in vite.config.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
David Martinelli committed Feb 18, 2024
1 parent 5a3db40 commit 5571b4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Blog } from '@pages/Blog';
import { Post } from '@pages/Post/Post';
import { createBrowserRouter } from 'react-router-dom';
import { createBrowserRouter, useRouteError } from 'react-router-dom';

function MyFallbackComponent() {
let error = useRouteError();
console.error(error);
return (
<div role="alert" className="bg-blue p-12 rounded-lg m-10">
<p>Something went wrong:</p>
Expand All @@ -12,7 +14,7 @@ function MyFallbackComponent() {

export const routes = createBrowserRouter([
{
path: '/',
path: '/github-blog',
element: <Blog />,
errorElement: <MyFallbackComponent />,
},
Expand Down

0 comments on commit 5571b4e

Please sign in to comment.