From 5ad8a08ad76daf0c2f34b5624f6f16166adb8f60 Mon Sep 17 00:00:00 2001
From: Claudio Wunder
Date: Sat, 11 Oct 2025 14:48:31 +0200
Subject: [PATCH 1/7] meta: upgrade to next.js 16
---
apps/site/app/[locale]/error.tsx | 11 ++++-----
apps/site/app/[locale]/not-found.tsx | 6 +----
apps/site/app/global-error.tsx | 6 +----
apps/site/app/global-not-found.tsx | 33 +++++++++++++++++++++++++++
apps/site/eslint.config.js | 2 +-
apps/site/next-env.d.ts | 2 +-
apps/site/next.config.mjs | 10 ++++----
apps/site/package.json | 13 ++++++-----
apps/site/{middleware.ts => proxy.ts} | 0
apps/site/tsconfig.json | 5 ++--
package.json | 4 ++--
pnpm-workspace.yaml | 2 +-
12 files changed, 60 insertions(+), 34 deletions(-)
create mode 100644 apps/site/app/global-not-found.tsx
rename apps/site/{middleware.ts => proxy.ts} (100%)
diff --git a/apps/site/app/[locale]/error.tsx b/apps/site/app/[locale]/error.tsx
index c3f2232662fd4..c7e4150ce90e1 100644
--- a/apps/site/app/[locale]/error.tsx
+++ b/apps/site/app/[locale]/error.tsx
@@ -1,6 +1,5 @@
'use client';
-import { ArrowRightIcon } from '@heroicons/react/24/solid';
import { useTranslations } from 'next-intl';
import type { FC } from 'react';
@@ -12,17 +11,17 @@ const ErrorPage: FC<{ error: Error }> = () => {
return (
- 500
+ 500
+
{t('layouts.error.internalServerError.title')}
+
{t('layouts.error.internalServerError.description')}
-
+
+
);
};
diff --git a/apps/site/app/[locale]/not-found.tsx b/apps/site/app/[locale]/not-found.tsx
index bca476307ac22..fb874d6fed4d3 100644
--- a/apps/site/app/[locale]/not-found.tsx
+++ b/apps/site/app/[locale]/not-found.tsx
@@ -1,6 +1,5 @@
'use server';
-import { ArrowRightIcon } from '@heroicons/react/24/solid';
import { getTranslations } from 'next-intl/server';
import type { FC } from 'react';
@@ -27,10 +26,7 @@ const NotFoundPage: FC = async () => {
{t('layouts.error.notFound.description')}
-
+
);
};
diff --git a/apps/site/app/global-error.tsx b/apps/site/app/global-error.tsx
index 02bff44ea7032..12f9440e15b88 100644
--- a/apps/site/app/global-error.tsx
+++ b/apps/site/app/global-error.tsx
@@ -1,6 +1,5 @@
'use client';
-import { ArrowRightIcon } from '@heroicons/react/24/solid';
import type { FC } from 'react';
import Button from '#site/components/Common/Button';
@@ -20,10 +19,7 @@ const GlobalErrorPage: FC<{ error: Error }> = () => (
This page has thrown a non-recoverable error.
-
+
+
+
+ 404
+
+ Page could not be found
+
+
+
+
+
+
+ Sorry, we couldn't find the page you're after! Try starting again
+ from the homepage.
+
+
+
+
+
+
+