Commit Graph

7 Commits

Author SHA1 Message Date
Dennis 88260e1e9a Add production CI/CD deployment pipeline
Build & Deploy / Build & Push Docker Images (push) Has been cancelled
Build & Deploy / Deploy on Server (push) Has been cancelled
Docker Integration / Docker Compose Build (push) Has been cancelled
Frontend CI / Lint, Test & Build (20) (push) Has been cancelled
Frontend CI / Lint, Test & Build (22) (push) Has been cancelled
Add GHCR image build/push and SSH-based server deployment workflow, production compose/env templates, and deployment script. Also fix frontend container healthcheck target and extend Docker CI with frontend health verification.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-15 22:54:14 +02:00
Dennis 2236725965 fix: enable Next.js standalone output for Docker builds
- Add output: 'standalone' to next.config.ts
- Fixes Docker build: .next/standalone now generated correctly

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 01:28:38 +01:00
Dennis 77bac590b3 fix: add SUPABASE_SERVICE_ROLE_KEY to CI build env
- Add placeholder service role key to frontend CI workflow build step
- Add build ARGs to Dockerfile for Supabase env vars
- Fixes: Next.js page data collection crash during build

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 01:24:56 +01:00
Dennis 4d7f00be1f fix: add billing types and fix Supabase type casting for admin routes
- Add src/types/billing.ts with Payment, Coupon, CreditTransaction, Invoice types
- Cast all Supabase query results through 'unknown' for untyped billing tables
- All routes now build cleanly with strict TypeScript checking

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 01:21:05 +01:00
Dennis 5ebea6b0d6 fix: resolve CI failures — Node 20+, exclude scanner-worker from build
- Update GitHub Actions workflows to Node 20/22 (ESLint 10 requires Node 20+)
- Exclude scanner-worker/ from frontend tsconfig and .dockerignore
- Update engines to require Node >= 20

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 01:15:13 +01:00
Dennis 379d9aa13c feat: add admin billing system, SMTP email, rename to CloudLense
- Add payments, coupons, credits, invoices management to admin dashboard
- Add 7 new admin tabs: Overview, Users, Orgs, Payments, Coupons, Credits, Invoices
- Replace Resend with SMTP email via nodemailer (info@dk0.dev / mail.dk0.dev)
- Add professional branded email templates (alerts, welcome, invoice, credit, password reset)
- Add database migration for payments, coupons, coupon_redemptions, credit_transactions, invoices tables
- Add credit_balance column to organizations
- Add RLS policies for all new tables
- Add 4 new API routes: /api/admin/{payments,coupons,credits,invoices}
- Rename project from website-monitoring to CloudLense
- Update all package.json names and README

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 01:04:37 +01:00
Dennis 50e25e3ee8 refactor: flatten monorepo structure to backend/ frontend/ devops/
Rename subdirectories for a cleaner single-repo layout:
- website-monitoring-backend/  → backend/
- website-monitoring-frontend/ → frontend/
- website-monitoring-devops/   → devops/

Update all references in package.json scripts, CI workflows,
docker-compose, pre-commit hooks, and documentation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 00:25:29 +01:00