Move CSP to proxy.ts instead of middleware.ts to avoid build conflict

Fixkamo-analytics
Shipped
April 17, 2026 at 7:15 PM UTC
Author
Kamo
Commit
18d202d

Next.js 16 doesn't allow both middleware.ts and proxy.ts. The Docker build copies proxy.ts as the middleware, so add CSP frame-ancestors header there instead. This reads ALLOWED_FRAME_URLS at runtime.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing