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

Fixkamo-analytics
已装运
2026年4月17日 19:15 UTC
作者
Kamo
提交
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.

所有更改

就像你看到的运输?

每一个都自动更新您工作空间的地盘。 开始自由,看它成长 一周又一周.

永远开始自由查看定价