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
+4
-4
@@ -132,7 +132,7 @@ See [proxy in this section](#proxy-formerly-middleware) below.
|
||||
> import { createProxy } from '@intecion/ipal-kit'
|
||||
> import { i18nConfig } from '@/i18n.config'
|
||||
> export const proxy = createProxy(i18nConfig, { NextResponse, markdown: true }) // markdown: GEO, content.md
|
||||
> export const config = { matcher: ['/((?!api|admin|_next|.*\\..*).*)'] }
|
||||
> export const config = { matcher: ['/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)'] }
|
||||
> ```
|
||||
> Use the manual variant below only when you need your own logic in the proxy.
|
||||
|
||||
@@ -171,7 +171,7 @@ export function proxy(req) {
|
||||
return res
|
||||
}
|
||||
|
||||
export const config = { matcher: ['/((?!api|admin|_next|.*\\..*).*)'] } // = DEFAULT_MIDDLEWARE_MATCHER, inline
|
||||
export const config = { matcher: ['/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)'] } // = DEFAULT_MIDDLEWARE_MATCHER, inline
|
||||
```
|
||||
|
||||
Behavior:
|
||||
@@ -182,7 +182,7 @@ Behavior:
|
||||
|
||||
`DEFAULT_MIDDLEWARE_MATCHER` excludes `api`, `admin`, `_next`, static files.
|
||||
The `admin` prefix is hard-coded — with a custom `adminRoute` (e.g. `/its`) add
|
||||
it to the matcher (`'/((?!api|its|_next|.*\\..*).*)'`), otherwise the proxy redirects the admin panel
|
||||
it to the matcher (`'/((?!(?:api|its|_next)(?:/|$)|.*\\..*).*)'`), otherwise the proxy redirects the admin panel
|
||||
to `/pl/its`.
|
||||
|
||||
## Locale cookie and consent (GDPR)
|
||||
@@ -398,7 +398,7 @@ in the proxy/middleware file, not an import/variable. Even though the plugin exp
|
||||
|
||||
```ts
|
||||
// proxy.ts — matcher INLINE (not an import)
|
||||
export const config = { matcher: ['/((?!api|admin|_next|.*\\..*).*)'] }
|
||||
export const config = { matcher: ['/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)'] }
|
||||
```
|
||||
|
||||
Use `DEFAULT_PROXY_MATCHER` as a reference value, but if Next complains
|
||||
|
||||
Reference in New Issue
Block a user