diff --git a/Dockerfile b/Dockerfile index a7d7d9b..753f4ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,11 @@ FROM node:20-alpine AS builder +ARG NODE_ENV=production +ENV NODE_ENV=development WORKDIR /app COPY package.json package-lock.json* ./ RUN npm install COPY . . +ENV NODE_ENV=production RUN npx next build FROM node:20-alpine AS runner diff --git a/next.config.mjs b/next.config.mjs new file mode 100644 index 0000000..ab09779 --- /dev/null +++ b/next.config.mjs @@ -0,0 +1,7 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + transpilePackages: ['@fiberops/shared'], + output: 'standalone', +}; + +export default nextConfig; diff --git a/next.config.ts b/next.config.ts deleted file mode 100644 index a327e25..0000000 --- a/next.config.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { NextConfig } from 'next'; -const nextConfig: NextConfig = { 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 ( + +
+The page you are looking for does not exist.
+ + + ); +}