Refuse a node_modules at the plugins/ root, where it outranks the host's

This commit is contained in:
2026-08-18 08:14:21 +02:00
parent 82af77356f
commit cb59eee76d
5 changed files with 18 additions and 17 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ export interface RequestContext {
// on off-site URLs. The host already does this for the chrome and its own redirects; a plugin
// wraps the hrefs it builds itself.
localeHref(href: string): string;
// Every installed locale, sorted. With `localeLabel` (from the barrel) it is what a plugin needs
// to build its own language picker; the host's own picker is already in the shell.
// Every installed locale, sorted. With `localeLabel` (from @plainpages/plugin-api) it is what a
// plugin needs to build its own language picker; the host's own picker is already in the shell.
locales: string[];
// Request-scoped logger: structured, in the request's trace. `log.info/warn/error(...)` to
// log; `log.fetch(url)` for an upstream call (a client span continuing the trace). Correlates by