From ae4211bb6856cff1d4b879a8486f039dd40cf830 Mon Sep 17 00:00:00 2001 From: kevin-asprec Date: Tue, 14 Apr 2026 10:52:43 +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 (56%) create mode 100644 src/app/not-found.tsx diff --git a/Dockerfile b/Dockerfile index 9ccd2a1..ec4b933 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 56% rename from next.config.ts rename to next.config.mjs index 42efe09..e2be998 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 = { transpilePackages: ['@fiberops/shared'], 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.

+ + + ); +}