From 8c4f79af00956d2009f7ea4740bd7dc0c9290c13 Mon Sep 17 00:00:00 2001
From: Claudio Wunder
Date: Sat, 11 Oct 2025 14:48:31 +0200
Subject: [PATCH 1/5] meta: upgrade to next.js 16
---
apps/site/app/[locale]/error.tsx | 11 +-
apps/site/app/[locale]/not-found.tsx | 14 +-
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 | 12 +-
apps/site/package.json | 13 +-
apps/site/{middleware.ts => proxy.ts} | 0
apps/site/tsconfig.json | 5 +-
package.json | 4 +-
pnpm-lock.yaml | 696 ++++++++++++++------------
pnpm-workspace.yaml | 2 +-
13 files changed, 444 insertions(+), 356 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 0842df54d486e..9467f6f484245 100644
--- a/apps/site/app/[locale]/not-found.tsx
+++ b/apps/site/app/[locale]/not-found.tsx
@@ -1,15 +1,12 @@
-'use client';
-
-import { ArrowRightIcon } from '@heroicons/react/24/solid';
-import { useTranslations } from 'next-intl';
+import { getTranslations } from 'next-intl/server';
import type { FC } from 'react';
import Button from '#site/components/Common/Button';
import Turtle from '#site/components/Common/Turtle';
import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop';
-const NotFoundPage: FC = () => {
- const t = useTranslations();
+const NotFoundPage: FC = async () => {
+ const t = await getTranslations();
return (
@@ -27,10 +24,7 @@ const NotFoundPage: FC = () => {
{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.
+
+
+
+
+
+
+