From cafb59dcf410d318f270ecf3f59c3f6041e0411e Mon Sep 17 00:00:00 2001 From: gunshiz Date: Fri, 3 Jul 2026 18:04:03 +0700 Subject: [PATCH] feat: implement custom 404 not-found page --- app/not-found.tsx | 27 +++++++++++++++++++++++++++ next.config.ts | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 app/not-found.tsx diff --git a/app/not-found.tsx b/app/not-found.tsx new file mode 100644 index 0000000..5a2c599 --- /dev/null +++ b/app/not-found.tsx @@ -0,0 +1,27 @@ +import Link from "next/link"; +import Image from "next/image"; +import { Button } from "@/components/ui/button"; + +export default function NotFound() { + return ( +
+ 404 Background + +
+

404

+

ไม่พบหน้าที่คุณต้องการ

+

+ ขออภัย หน้าที่คุณกำลังพยายามเข้าถึงอาจถูกลบ ย้าย หรือไม่มีอยู่ตั้งแต่แรก +

+ +
+
+ ); +} diff --git a/next.config.ts b/next.config.ts index efd5f49..40247fa 100644 --- a/next.config.ts +++ b/next.config.ts @@ -5,6 +5,10 @@ const nextConfig: NextConfig = { allowedDevOrigins: ['test.gunshiz.top'], images: { remotePatterns: [ + { + protocol: 'https', + hostname: 'cdn.gunshiz.top', + }, { protocol: 'https', hostname: 'cdn.discordapp.com',