6 Commits

Author SHA1 Message Date
kevin-asprec
e7cfb0ef2c fix: override NODE_ENV=development for npm install in Coolify 2026-04-14 21:01:23 +08:00
kevin-asprec
a3956ab8c5 fix: remove ENV NODE_ENV=development that breaks Next.js static generation 2026-04-14 20:14:30 +08:00
kevin-asprec
ae4211bb68 fix: add not-found.tsx, convert to next.config.mjs, add NODE_ENV=development to Dockerfile 2026-04-14 10:52:43 +08:00
kevin-asprec
3f195e1765 fix: compile shared package as CommonJS for NestJS compatibility 2026-04-13 16:52:39 +08:00
kevin-asprec
7df2789153 merge: develop into main 2026-04-13 13:04:28 +08:00
4252478e73 Initial commit 2026-04-13 00:50:56 +00:00
6 changed files with 21 additions and 9 deletions

View File

@@ -1,10 +1,13 @@
FROM node:20-alpine AS builder
ARG NODE_ENV=production
ENV NODE_ENV=development
WORKDIR /app
COPY package.json package-lock.json* ./
COPY packages/shared/package.json ./packages/shared/
RUN npm install
COPY packages/shared/ ./packages/shared/
COPY . .
ENV NODE_ENV=production
RUN npx next build
FROM node:20-alpine AS runner

2
README.md Normal file
View File

@@ -0,0 +1,2 @@
# fiberops-web-new

View File

@@ -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;

View File

@@ -2,8 +2,8 @@
"name": "@fiberops/shared",
"version": "0.1.0",
"private": true,
"main": "./src/index.ts",
"types": "./src/index.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc",
"lint": "tsc --noEmit",

View File

@@ -1,15 +1,14 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"module": "CommonJS",
"moduleResolution": "node",
"lib": ["ES2022"],
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"declaration": true,
"sourceMap": true,
"outDir": "./dist",

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>
);
}