-
- We couldn't find the page you were looking for.{" "} - Go home -
-From 4bc9b6ebcc1617f9dcb46a64abc6920f5bf0342f Mon Sep 17 00:00:00 2001
From: dvelo <52332868+DeveloLongScript@users.noreply.github.com>
Date: Sat, 1 Mar 2025 18:20:33 -0600
Subject: [PATCH] fix(www): 404 null error #2
---
apps/www/next.config.mjs | 6 ++++++
apps/www/src/app/(main)/not-found.tsx | 25 ++++++++++++-------------
2 files changed, 18 insertions(+), 13 deletions(-)
diff --git a/apps/www/next.config.mjs b/apps/www/next.config.mjs
index b177fea..26b00eb 100644
--- a/apps/www/next.config.mjs
+++ b/apps/www/next.config.mjs
@@ -53,6 +53,12 @@ const nextConfig = {
typescript: {
ignoreBuildErrors: true,
},
+ output: "standalone",
+ experimental: {
+ serverActions: {
+ allowedOrigins: ["localhost:3000", "mhsf.app"],
+ },
+ },
};
export default nextConfig;
diff --git a/apps/www/src/app/(main)/not-found.tsx b/apps/www/src/app/(main)/not-found.tsx
index 400fbc6..54f9cd5 100644
--- a/apps/www/src/app/(main)/not-found.tsx
+++ b/apps/www/src/app/(main)/not-found.tsx
@@ -28,19 +28,18 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
-import Link from "next/link";
+"use client";
export default function NotFound() {
- return (
-
- We couldn't find the page you were looking for.{" "}
- Go home
-
-