Skip to content

Commit

Permalink
feat: 404 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Sep 24, 2024
1 parent 7b92cb3 commit 4e911e6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/preview/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="shortcut icon" href="https://preview.boolti.in/favicon.png" />

<title>핫한 공연 예매의 시작, 불티</title>
<link rel="canonical" href="https://preview.boolti.in" />
<link rel="canonical" href="https://boolti.in" />
<meta name="description" content="지금 불티에서 핫한 공연 정보를 확인해 보세요." />

<meta property="og:type" content="website" />
Expand Down
2 changes: 2 additions & 0 deletions apps/preview/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { HelmetProvider } from 'react-helmet-async';

import ShowPreviewPage from './pages/ShowPreviewPage';
import { fetcher } from '@boolti/api/src/fetcher';
import NotFound from './components/NotFound';

const router = createBrowserRouter([
{
Expand All @@ -20,6 +21,7 @@ const router = createBrowserRouter([
return response;
}
},
errorElement: <NotFound />,
},
]);

Expand Down
8 changes: 8 additions & 0 deletions apps/preview/src/components/NotFound/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { useEffect } from 'react';

export default () => {
useEffect(() => {
window.location.href = 'https://boolti.in';
}, []);
return null;
};

0 comments on commit 4e911e6

Please sign in to comment.