Migrate CSP middleware to Next.js proxy convention.

Renames src/middleware.ts to src/proxy.ts per Next.js 16 deprecation guidance. CSP nonce behavior is unchanged; build no longer emits the middleware warning.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BigBodyCobainandCursor committed 2026-06-29 22:40:43 -06:00
1 parent 39ca498d88
commit 47faa1e488
7 files changed
+24 -24

No files matched your search

@@ -17,7 +17,7 @@ const excludedPaths = [
'.next',
'out',
'src/app/api',
'src/middleware.ts',
'src/proxy.ts',
];
function normalizeRelativePath(target) {