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:
Radosław Smoliński
2026-11-26 20:14:59 +01:00
co-authored by Claude Opus 5.5
parent e821d52d19
commit 498b3dbf38
21 changed files with 252 additions and 26 deletions
+1 -1
View File
@@ -528,7 +528,7 @@ No abbreviations (`HeroSection`, not `HeroSec`). Do not create `lib/pages.ts`,
1. **`proxy.ts`, never `middleware.ts`.** middleware.ts exists → delete it. Proxy:
`export const proxy = createProxy(i18nConfig, { NextResponse, markdown: true })`, the matcher
as an **inline literal** (`['/((?!api|admin|_next|.*\\..*).*)']`), not an import.
as an **inline literal** (`['/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)']`), not an import.
2. **No explicit `<head>` in the layout.** It pushes metadata into `<body>`.
`<MediaPreconnect/>` in `<body>` (React 19 hoists it).
3. **ISR:** `export const revalidate = 3600` in `page.tsx`. Refresh after save:
+1 -1
View File
@@ -265,7 +265,7 @@ import { i18nConfig } from '@/i18n.config'
export const proxy = createProxy(i18nConfig, { markdown: true, NextResponse })
// Inline LITERAL — Next reads the matcher statically (importing DEFAULT_PROXY_MATCHER breaks /admin)
export const config = { matcher: ['/((?!api|admin|_next|.*\\..*).*)'] }
export const config = { matcher: ['/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)'] }
```
## Collections and globals
+1 -1
View File
@@ -399,7 +399,7 @@ import { createProxy } from '@intecion/ipal-kit'
import { i18nConfig } from '@/i18n.config'
export const proxy = createProxy(i18nConfig, { NextResponse, markdown: true })
// Inline LITERAL (importing DEFAULT_PROXY_MATCHER = 500 on /admin); with adminRoute '/its' write `its` instead of `admin`
export const config = { matcher: ['/((?!api|admin|_next|.*\\..*).*)'] }
export const config = { matcher: ['/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)'] }
```
`src/lib/content.ts` = PROGRAMISTA §2.7 1:1: `createContentHelpers({ config, content: contentConfig, i18n: i18nConfig,
baseUrl: process.env.NEXT_PUBLIC_SERVER_URL, markdownAlternate: true, summaryField: 'aiSummary', mcp: { serverName: