diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000..e3bfe55 --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1,8 @@ +nodeLinker: node-modules +enableGlobalCache: true + +plugins: + - path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs + spec: "@yarnpkg/plugin-workspace-tools" + +yarnPath: .yarn/releases/yarn-1.22.22.cjs \ No newline at end of file diff --git a/apps/www/src/app/error.tsx b/apps/www/src/app/error.tsx new file mode 100644 index 0000000..ef42605 --- /dev/null +++ b/apps/www/src/app/error.tsx @@ -0,0 +1,29 @@ +'use client'; + +import { useEffect } from 'react'; + +export default function Error({ + error, + reset, +}: { + error: Error & { digest?: string }; + reset: () => void; +}) { + useEffect(() => { + console.error(error); + }, [error]); + + return ( +
+
+

Something went wrong!

+ +
+
+ ); +} \ No newline at end of file diff --git a/apps/www/src/app/not-found.tsx b/apps/www/src/app/not-found.tsx index 54f9cd5..3261c72 100644 --- a/apps/www/src/app/not-found.tsx +++ b/apps/www/src/app/not-found.tsx @@ -28,18 +28,22 @@ * OTHER DEALINGS IN THE SOFTWARE. */ -"use client"; - -export default function NotFound() { +export default async function NotFound() { return ( -
-
-

404 - Page not found

-

We couldn't find the page you were looking for.

- - Return home - -
-
+ + +
+
+

404 - Page Not Found

+

+ The page you are looking for could not be found. +

+ + Return to Home + +
+
+ + ); } diff --git a/package.json b/package.json index e194494..c611414 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,5 @@ "node": ">=18" }, "packageManager": "yarn@1.22.22", - "workspaces": [ - "apps/*", - "packages/*" - ] + "workspaces": ["apps/*", "packages/*"] }