Compare commits

8 Commits

Author SHA1 Message Date
john kevin asprec
4d5177004c chore: update Dockerfile to explicitly set PORT environment variable to 3002 2026-06-16 22:33:09 +08:00
kevin-asprec
13d1fdfdef fix: remove packages/shared and override NODE_ENV for Coolify builds
Portal has no shared package dependency. Coolify injects ARG
NODE_ENV=production which skips devDependencies.
2026-04-14 20:42:14 +08:00
kevin-asprec
b079df58e4 fix: remove ENV NODE_ENV=development that breaks Next.js static generation 2026-04-14 20:12:59 +08:00
kevin-asprec
5de24a78d3 fix: add not-found.tsx to prevent Html import error during build 2026-04-14 09:43:02 +08:00
kevin-asprec
337a780d0c fix: set NODE_ENV=development during build to include devDependencies 2026-04-14 09:00:58 +08:00
kevin-asprec
3040d4f6bf fix: add cache bust arg to force clean Docker build 2026-04-14 06:41:26 +08:00
kevin-asprec
cc52551b5a fix: use next.config.mjs to avoid typescript build dependency 2026-04-14 06:31:04 +08:00
kevin-asprec
7489bdef14 fix: install typescript for next.config.ts transpilation in Dockerfile 2026-04-14 06:05:36 +08:00
4 changed files with 20 additions and 3 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

7
next.config.mjs Normal file
View File

@@ -0,0 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['@fiberops/shared'],
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>
);
}