diff --git a/packages/ui/fe-bundle/src/pages/404.tsx b/packages/ui/fe-bundle/src/pages/404.tsx new file mode 100644 index 0000000000..e3c2f8e365 --- /dev/null +++ b/packages/ui/fe-bundle/src/pages/404.tsx @@ -0,0 +1,15 @@ +import dynamic from "next/dynamic"; +import { useRouter } from "next/router"; + +const Core: React.FC = () => { + const router = useRouter(); + + void router.push("/"); + return null; +}; + +const NotFoundPage = dynamic(() => Promise.resolve(Core), { + ssr: false, +}); + +export default NotFoundPage;