diff --git a/next.config.mjs b/next.config.mjs
index ff6f94a..adbc227 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -2,21 +2,14 @@
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
- async rewrites() {
- return {
- afterFiles: [
- {
- source: '/',
- destination: '/find',
- },
- ],
- fallback: [
- {
- source: '/:path*',
- destination: '/404',
- },
- ],
- };
+ async redirects() {
+ return [
+ {
+ source: '/',
+ destination: '/find',
+ permanent: true,
+ },
+ ];
},
images: {
domains: ['m.media-amazon.com'],
diff --git a/src/components/error/ErrorInfo.tsx b/src/components/error/ErrorInfo.tsx
index e42b55e..07cca5f 100644
--- a/src/components/error/ErrorInfo.tsx
+++ b/src/components/error/ErrorInfo.tsx
@@ -11,7 +11,8 @@ import styles from 'src/styles/modules/components/error/error-info.module.scss';
type Props = {
message: string;
statusCode?: number;
- // props specific to error boundary.
+ originalPath?: string;
+ /** props specific to error boundary. */
misc?: {
subtext: string;
buttonText: string;
@@ -19,12 +20,12 @@ type Props = {
};
};
-const ErrorInfo = ({ message, statusCode, misc }: Props) => {
+const ErrorInfo = ({ message, statusCode, misc, originalPath }: Props) => {
const title = statusCode ? `${message} (${statusCode})` : message;
return (
<>
-