Most PopularNext.js · Stripe · Postgres · Vercel Cron
Next.js SaaS Production Stack.
Covers your customer-facing Next.js marketing site, database-backed /api/health JSON endpoint, checkout webhook receiver, and nightly billing cron in under 60 seconds.
Option 1: alertondown.yaml (GitHub Action & CLI GitOps Sync)
# alertondown.yaml — Next.js SaaS Production Stack
monitors:
- name: "Next.js Marketing & SEO Guard"
url: "https://yourapp.com"
type: http
intervalSec: 60
- name: "API /api/health (DB + Redis)"
url: "https://yourapp.com/api/health"
type: api
intervalSec: 30
- name: "Stripe Webhook Receiver"
url: "https://yourapp.com/api/webhooks/stripe"
type: http
intervalSec: 60
- name: "Nightly Billing Cron (Vercel)"
url: "https://alertondown.com/hb/replace_me"
type: heartbeat
intervalSec: 86400Option 2: main.tf (Terraform & OpenTofu Provider)
resource "alertondown_monitor" "nextjs_web" {
friendly_name = "Next.js Marketing & SEO Guard"
target_url = "https://yourapp.com"
monitor_type = "http"
interval_sec = 60
expected_status_codes = "200"
check_ssl_errors = true
}
resource "alertondown_monitor" "nextjs_api_health" {
friendly_name = "API /api/health (DB + Redis)"
target_url = "https://yourapp.com/api/health"
monitor_type = "api"
interval_sec = 30
expected_status_codes = "200"
check_ssl_errors = true
}Option 3: Cron / Heartbeat / CLI Instrumentation
// app/api/cron/billing/route.ts
import { createHeartbeat } from "@alertondown/sdk";
const hb = createHeartbeat(process.env.ALERTONDOWN_HB_TOKEN!);
export async function GET() {
await hb.wrap(() => reconcileSubscriptions());
return Response.json({ ok: true });
}Production Readiness Checklist
- Assert HTTP 200 and $.ok == true on /api/health
- Enable accidental SEO noindex protection on production marketing routes
- Subscribe to Vercel, Stripe, and Cloudflare 3rd-party status feeds
- Attach GitHub Action deploy markers on every push to main
More Stack Templates
E-Commerce & Checkout Protection StackWordPress & Digital Agency Client FleetKubernetes Ingress & Microservices StackAI SaaS & LLM API Wrapper StackLaravel Forge / Vapor Production StackFastAPI, Celery & Airflow Data StackCloudflare Workers & Edge API StackSupabase + Vercel Indie SaaS StackB2B API-First Enterprise SLA Stack