fix: add not-found.tsx, convert to next.config.mjs, add NODE_ENV=development to Dockerfile

This commit is contained in:
kevin-asprec
2026-04-14 10:41:13 +08:00
parent 3f195e1765
commit afe557a63d
3 changed files with 14 additions and 4 deletions

View File

@@ -1,4 +1,6 @@
FROM node:20-alpine AS builder FROM node:20-alpine AS builder
ARG CACHE_BUST=1
ENV NODE_ENV=development
WORKDIR /app WORKDIR /app
COPY package.json package-lock.json* ./ COPY package.json package-lock.json* ./
COPY packages/shared/package.json ./packages/shared/ COPY packages/shared/package.json ./packages/shared/

View File

@@ -1,8 +1,6 @@
import type { NextConfig } from 'next'; /** @type {import('next').NextConfig} */
const nextConfig = {
const nextConfig: NextConfig = {
transpilePackages: ['@fiberops/shared'], transpilePackages: ['@fiberops/shared'],
output: 'standalone', output: 'standalone',
}; };
export default nextConfig; export default nextConfig;

10
src/app/not-found.tsx Normal file
View File

@@ -0,0 +1,10 @@
export default function NotFound() {
return (
<html lang="en">
<body>
<h1>404 - Page Not Found</h1>
<p>The page you are looking for does not exist.</p>
</body>
</html>
);
}