From e26c751e73fd893bf1b33b02cf76dd6348a5d5da Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Thu, 1 Aug 2024 11:27:15 +0900 Subject: [PATCH] chore: make client component for custom error page --- src/app/{500.js => error.jsx} | 2 ++ src/app/{404.js => not-found.jsx} | 2 ++ 2 files changed, 4 insertions(+) rename src/app/{500.js => error.jsx} (97%) rename src/app/{404.js => not-found.jsx} (98%) diff --git a/src/app/500.js b/src/app/error.jsx similarity index 97% rename from src/app/500.js rename to src/app/error.jsx index 654b605a..07d75e7e 100644 --- a/src/app/500.js +++ b/src/app/error.jsx @@ -1,3 +1,5 @@ +'use client' + export default function ServerError() { return (
diff --git a/src/app/404.js b/src/app/not-found.jsx similarity index 98% rename from src/app/404.js rename to src/app/not-found.jsx index 8aa5e9bc..8127943b 100644 --- a/src/app/404.js +++ b/src/app/not-found.jsx @@ -1,3 +1,5 @@ +'use client' + import Link from 'next/link' export default function NotFound() {