From 6e4b45ec952edd117e0a949dd0b2091d012a0b4d Mon Sep 17 00:00:00 2001 From: DanerSound Date: Mon, 4 Nov 2024 08:00:07 +0100 Subject: [PATCH 1/2] first version 404 custom page --- .env.example | 24 ------------------------ src/app/404/page.tsx | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 24 deletions(-) delete mode 100644 .env.example create mode 100644 src/app/404/page.tsx diff --git a/.env.example b/.env.example deleted file mode 100644 index 1cf289b..0000000 --- a/.env.example +++ /dev/null @@ -1,24 +0,0 @@ -# Clone this file into a .env file and populate it with your secrets to start developing - -# Will be used by Prisma to connect to database https://www.prisma.io/docs/reference/database-reference/connection-urls#env -# Example: "postgresql://postgres:password@localhost:5432/peoplez" -DATABASE_URL="YOUR_POSTGRES_URL_HERE" - -# Next Auth -NEXTAUTH_URL="http://localhost:3000" -NEXTAUTH_SECRET="secret" - -# Stripe keys -STRIPE_PUBLISHABLE_KEY= -STRIPE_PRIVATE_KEY= - -# Email sending -EMAIL_SERVER_USER= -EMAIL_SERVER_PASSWORD= -EMAIL_SERVER_HOST= -EMAIL_SERVER_PORT= -EMAIL_FROM= -EMAIL_SECURE= - -# Dev -DEVELOPER=true \ No newline at end of file diff --git a/src/app/404/page.tsx b/src/app/404/page.tsx new file mode 100644 index 0000000..87bff88 --- /dev/null +++ b/src/app/404/page.tsx @@ -0,0 +1,14 @@ +// app/404/page.tsx +import Link from "next/link"; + +export default function Custom404() { + return ( +
+

404 - Pagina non trovata

+

Spiacenti, la pagina che stai cercando non esiste.

+ + Torna alla homepage + +
+ ); +} From 18d785a14f455f153ed843b7b081b9831e30b639 Mon Sep 17 00:00:00 2001 From: DanerSound Date: Fri, 8 Nov 2024 08:13:08 +0100 Subject: [PATCH 2/2] working version custom 404 --- src/app/404/page.tsx | 14 -------------- src/app/not-found.tsx | 11 +++++++++++ 2 files changed, 11 insertions(+), 14 deletions(-) delete mode 100644 src/app/404/page.tsx create mode 100644 src/app/not-found.tsx diff --git a/src/app/404/page.tsx b/src/app/404/page.tsx deleted file mode 100644 index 87bff88..0000000 --- a/src/app/404/page.tsx +++ /dev/null @@ -1,14 +0,0 @@ -// app/404/page.tsx -import Link from "next/link"; - -export default function Custom404() { - return ( -
-

404 - Pagina non trovata

-

Spiacenti, la pagina che stai cercando non esiste.

- - Torna alla homepage - -
- ); -} diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 0000000..986eea9 --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,11 @@ +import Link from 'next/link' + +export default function NotFound() { + return ( +
+

Not Found this page!

+

Could not find requested resource

+ Return Home +
+ ) +} \ No newline at end of file