5 Commits
develop ... uat

Author SHA1 Message Date
kevin-asprec
85aad3d7e3 fix: remove packages/shared and override NODE_ENV for Coolify 2026-04-14 21:00:28 +08:00
kevin-asprec
af42fdb96f fix: remove ENV NODE_ENV=development that breaks Next.js static generation 2026-04-14 20:13:59 +08:00
kevin-asprec
0fe5061134 fix: add not-found.tsx, convert to next.config.mjs, add NODE_ENV=development to Dockerfile 2026-04-14 10:41:42 +08:00
kevin-asprec
8aaa1115ec merge: develop into main 2026-04-13 13:04:36 +08:00
28127ff5a4 Initial commit 2026-04-13 00:41:04 +00:00
5 changed files with 21 additions and 4 deletions

View File

@@ -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
@@ -11,7 +14,7 @@ RUN apk add --no-cache dumb-init
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
ENV NODE_ENV=production HOSTNAME=0.0.0.0 PORT=3002
ENV NODE_ENV=production HOSTNAME=0.0.0.0
EXPOSE 3002
USER nextjs
ENTRYPOINT ["dumb-init", "--"]

2
README.md Normal file
View File

@@ -0,0 +1,2 @@
# fiberops-client-portal

5
next.config.mjs Normal file
View File

@@ -0,0 +1,5 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
};
export default nextConfig;

View File

@@ -1,3 +0,0 @@
import type { NextConfig } from 'next';
const nextConfig: NextConfig = { output: 'standalone' };
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>
);
}