Skip to content

Commit

Permalink
refactor: redirect to home page when page not fount
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Jan 14, 2024
1 parent 2db000b commit 4d76345
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .dumi/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { useEffect } from 'react';

export default () => {
useEffect(() => {
location.href = location.origin;
}, []);

return <></>;
};

0 comments on commit 4d76345

Please sign in to comment.