From 4e911e6806cc3a1ef2447aac7f8dd500a345af07 Mon Sep 17 00:00:00 2001 From: Minsu Kim Date: Tue, 24 Sep 2024 21:17:16 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20404=20=EB=8C=80=EC=9D=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/preview/index.html | 2 +- apps/preview/src/App.tsx | 2 ++ apps/preview/src/components/NotFound/index.tsx | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 apps/preview/src/components/NotFound/index.tsx diff --git a/apps/preview/index.html b/apps/preview/index.html index 7913f006..dcc09174 100644 --- a/apps/preview/index.html +++ b/apps/preview/index.html @@ -6,7 +6,7 @@ 핫한 공연 예매의 시작, 불티 - + diff --git a/apps/preview/src/App.tsx b/apps/preview/src/App.tsx index 14d8e1d3..4a66e9dc 100644 --- a/apps/preview/src/App.tsx +++ b/apps/preview/src/App.tsx @@ -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([ { @@ -20,6 +21,7 @@ const router = createBrowserRouter([ return response; } }, + errorElement: , }, ]); diff --git a/apps/preview/src/components/NotFound/index.tsx b/apps/preview/src/components/NotFound/index.tsx new file mode 100644 index 00000000..f726e191 --- /dev/null +++ b/apps/preview/src/components/NotFound/index.tsx @@ -0,0 +1,8 @@ +import { useEffect } from 'react'; + +export default () => { + useEffect(() => { + window.location.href = 'https://boolti.in'; + }, []); + return null; +};