-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2eba2a
commit 761f431
Showing
2 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"use client"; | ||
|
||
import { useEffect } from "react"; | ||
|
||
/** | ||
* | ||
* This page should never be reached as it is deprecated using the app router. | ||
* By having this page we will silence warnings from vercel. | ||
* This page redirects to the global handle all error page. | ||
*/ | ||
|
||
export default function DeprecatedErrorPage({ | ||
error, | ||
}: { | ||
error: Error & { digest?: string }; | ||
}) { | ||
// redirect to global-error.tsx | ||
useEffect(() => { | ||
window.location.href = "/global-error"; | ||
}, [error]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters