Files and paths (IAWL ideas 12, 13, 36): resolved --dest, starter refuses links and escaping paths, Office ZIP entries with trailing dots, proxy matcher ends api/admin/_next at /
- iapl-skills: --dest is compared with the project root after resolving links; a folder that is the root or holds it (.., /) is refused - starter: collectBundle refuses symbolic links (their target would ship in the published bundle); writeFiles refuses absolute or escaping paths - form files: a program inside a DOCX/XLSX is found with trailing dots or spaces (Windows drops them) - proxy matcher: (?!(?:api|admin|_next)(?:/|$)|...) so /administracja, /apis get the proxy; doctor rule proxy-matcher reports the old literal - pnpm: @swc/core in ignoredBuiltDependencies (its postinstall only checks the native binary, already installed) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e821d52d19
commit
498b3dbf38
@@ -245,7 +245,7 @@ import { i18nConfig } from '@/i18n.config'
|
||||
export const proxy = createProxy(i18nConfig, { NextResponse, markdown: true })
|
||||
|
||||
// Inline literal — Next analyzes it statically; importing a variable = proxy on /admin → 500
|
||||
export const config = { matcher: ['/((?!api|admin|_next|.*\\..*).*)'] }
|
||||
export const config = { matcher: ['/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)'] }
|
||||
```
|
||||
Sets `x-locale` / `x-pathname`, the language cookie with consent, redirects `/`.
|
||||
The headers are for dynamic routes (API, route handlers) — in SSG/ISR pages,
|
||||
|
||||
Reference in New Issue
Block a user