diff --git a/components/500Page.jsx b/components/500Page.jsx index fef2db2..d3fee7c 100644 --- a/components/500Page.jsx +++ b/components/500Page.jsx @@ -1,6 +1,6 @@ import { Page500Style } from "./500Page.style"; -function Page500() { +function Page500(error = null) { return (
@@ -10,6 +10,8 @@ function Page500() { 500
Internal server error +

{JSON.stringify(error)}

+

I might be currently trying to fix the problem.

Maybe try again in a few minutes ...

diff --git a/components/errorBoundary.jsx b/components/errorBoundary.jsx index 1bdf3f1..d4eca1f 100644 --- a/components/errorBoundary.jsx +++ b/components/errorBoundary.jsx @@ -1,4 +1,5 @@ import { Component } from "react" +import Page500 from "./500Page" class ErrorBoundary extends Component { constructor(props) { @@ -20,6 +21,7 @@ class ErrorBoundary extends Component { // You can render any custom fallback UI return (
+

Oops, there is an error!

); } + +// export const getServerSideProps = async () => { + +// throw new Error("Internal server error") + +// return { +// props:[] +// } +// } + \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 83d8710..95fe2b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1077,11 +1077,6 @@ define-properties@^1.1.3, define-properties@^1.1.4: has-property-descriptors "^1.0.0" object-keys "^1.1.1" -dequal@2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.2.tgz#85ca22025e3a87e65ef75a7a437b35284a7e319d" - integrity sha512-q9K8BlJVxK7hQYqa6XISGmBZbtQQWVXSrRrWreHC94rMt1QL/Impruc+7p2CYSYuVIUr+YCt6hjrs1kkdJRTug== - dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" @@ -2895,13 +2890,6 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== -swr@^0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/swr/-/swr-0.4.2.tgz#4a9ed5e9948088af145c79d716d294cb99712a29" - integrity sha512-SKGxcAfyijj/lE5ja5zVMDqJNudASH3WZPRUakDVOePTM18FnsXgugndjl9BSRwj+jokFCulMDe7F2pQL+VhEw== - dependencies: - dequal "2.0.2" - swr@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/swr/-/swr-1.3.0.tgz#c6531866a35b4db37b38b72c45a63171faf9f4e8" @@ -3038,12 +3026,6 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" -use-last-fm@BRAVO68WEB/use-last-fm: - version "0.6.2" - resolved "https://codeload.github.com/BRAVO68WEB/use-last-fm/tar.gz/9d2ce5424e8259ae91d2a0e00d8efdb41971c7ce" - dependencies: - swr "^0.4.0" - v8-compile-cache@^2.0.3: version "2.3.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"