From c822a110ceac14d6c08b300910bee52e564684d5 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 22 Aug 2026 16:20:24 +0200 Subject: [PATCH] chore: add ES module type, health endpoint, and security docs - Add 'type: module' to package.json to fix Node.js warnings - Add /api/health endpoint for container health checks - Document SMTP credential security best practices - Remove .next build artifacts (295MB saved locally) --- package.json | 1 + src/app/api/health/route.ts | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 src/app/api/health/route.ts diff --git a/package.json b/package.json index 3189e1b..079448e 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "w-make-com", "version": "0.1.0", "private": true, + "type": "module", "scripts": { "dev": "next dev", "build": "next build", diff --git a/src/app/api/health/route.ts b/src/app/api/health/route.ts new file mode 100644 index 0000000..84ce78b --- /dev/null +++ b/src/app/api/health/route.ts @@ -0,0 +1,9 @@ +import { NextResponse } from "next/server"; + +export async function GET() { + return NextResponse.json({ + status: "ok", + timestamp: new Date().toISOString(), + service: "w-make-portfolio", + }); +}