From f516d4de8a3d0ea52c439eb2ef12291d4d1f7846 Mon Sep 17 00:00:00 2001 From: kevin-asprec Date: Tue, 14 Apr 2026 10:53:41 +0800 Subject: [PATCH] fix: add not-found.tsx, convert to next.config.mjs, add NODE_ENV=development to Dockerfile --- Dockerfile | 2 ++ next.config.ts => next.config.mjs | 6 ++---- src/app/not-found.tsx | 10 ++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) rename next.config.ts => next.config.mjs (51%) create mode 100644 src/app/not-found.tsx diff --git a/Dockerfile b/Dockerfile index c98bde5..16781e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ FROM node:20-alpine AS builder +ARG CACHE_BUST=1 +ENV NODE_ENV=development WORKDIR /app COPY package.json package-lock.json* ./ COPY packages/shared/package.json ./packages/shared/ diff --git a/next.config.ts b/next.config.mjs similarity index 51% rename from next.config.ts rename to next.config.mjs index 130bf5b..6b569fd 100644 --- a/next.config.ts +++ b/next.config.mjs @@ -1,8 +1,6 @@ -import type { NextConfig } from 'next'; - -const nextConfig: NextConfig = { +/** @type {import('next').NextConfig} */ +const nextConfig = { reactStrictMode: true, output: 'standalone', }; - export default nextConfig; diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 0000000..3cd9eb3 --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,10 @@ +export default function NotFound() { + return ( + + +

404 - Page Not Found

+

The page you are looking for does not exist.

+ + + ); +}