Disable production browser source maps
Prevents /_next/static/**/*.js.map from exposing full TypeScript sources and internal route structure to public scrapers.
/** @type {import('next').NextConfig} */
const nextConfig = {
productionBrowserSourceMaps: false,
poweredByHeader: false,
};
export default nextConfig;
We ran passive, read-only audits across 100 newly launched indie SaaS and AI-built web apps (Next.js, Vite, Lovable, Bolt, Cursor, Supabase). Most ship fast on modern hosts — and silently fail email authentication, HTTP hardening, and AI answer-engine discovery.
Share of audited production domains failing each read-only launch check, alongside the 3% that pass all four pillars together.
Composite pillar scores comparing the median newly launched indie app against the top 3% cohort passing all four launch gates.
| Launch Pillar | Vibe-Coded / Indie Median (51/100) | Top 3% Production-Ready (92+/100) | Gap |
|---|---|---|---|
| Web Security & JS Bundles | 54/100 0-2 headers, exposed .js.map bundles, unguarded anon Supabase/Firebase tables. | 94/100 Strict CSP + HSTS preload, source maps disabled, zero client secrets, RLS locked. | +40 pts |
| Email Auth (SPF / DKIM / DMARC) | 38/100 No _dmarc or p=none, unflattened SPF > 10 lookups, missing MTA-STS. | 96/100 p=quarantine/reject, aligned DKIM + SPF <= 10 lookups, clean across 20 DNSBLs. | +58 pts |
| AI Search / GEO (llms.txt + WAF) | 44/100 No /llms.txt (or HTML 200 soft-404), WAF 403 blocking AI search crawlers. | 91/100 Clean /llms.txt + JSON-LD entity graph, GPTBot/ClaudeBot/PerplexityBot allowed. | +47 pts |
| TLS, Brand & Transport Hygiene | 68/100 Missing HSTS preload, inconsistent redirects, unclaimed package/org handles. | 95/100 TLS 1.3 + HSTS preload, clean canonical redirects, primary domains & handles secured. | +27 pts |
Run the exact same read-only 4-pillar audit on your own production domain in 30 seconds — no signup, no agent installation.
Try a live domain:
Read-only passive checks across TLS, HTTP headers, JS bundles, SPF/DKIM/DMARC, and AI search crawlers.
Production-tested templates covering the highest-frequency failure modes observed in the 100-app study.
Closes unauthenticated PostgREST table dumps when NEXT_PUBLIC_SUPABASE_ANON_KEY is shipped in client bundles.
-- Lock down public tables accessed via NEXT_PUBLIC_SUPABASE_ANON_KEY
ALTER TABLE public.profiles ENABLE ROW LEVEL SECURITY;
CREATE POLICY "Users read own profile only"
ON public.profiles FOR SELECT
USING (auth.uid() = id);
Moves your domain off p=none so Gmail, Yahoo, and enterprise filters verify aligned SPF/DKIM and block forged senders.
; DNS TXT record for _dmarc.yourdomain.com (TTL 300)
; Start at p=quarantine, monitor RUA reports 14 days, then upgrade to p=reject
v=DMARC1; p=quarantine; sp=quarantine; pct=100; adkim=r; aspf=r; rua=mailto:dmarc@yourdomain.com
Eliminates the 0/5 header gap with HSTS preload, clickjacking protection, MIME sniffing locks, and strict Referrer-Policy.
{
"headers": [{
"source": "/(.*)",
"headers": [
{ "key": "Strict-Transport-Security", "value": "max-age=63072000; includeSubDomains; preload" },
{ "key": "Content-Security-Policy", "value": "default-src 'self'; object-src 'none'; frame-ancestors 'none'" },
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "X-Frame-Options", "value": "DENY" },
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }
]
}]
}
Gives ChatGPT, Claude, and Perplexity a factual, token-efficient summary of your product, docs, and pricing.
> One-sentence factual description of what your app does, who it serves, and its primary live URL.
## Core Pages
- Documentation: https://yourdomain.com/docs
- Pricing: https://yourdomain.com/#pricing
- Security & Status: https://yourdomain.com/security
Blocks regressions on headers, leaked keys, DMARC, or AI crawlers before they hit production.
name: ShipBastion Pre-Launch Gate
on: [push, pull_request]
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: zColdWater/shipbastion-action@v1
with:
url: https://yourdomain.com
fail-below-grade: B