Skip to content

Commit 0cecfc5

Browse files
committed
[docs] Require clean website dependency closure
Signed-off-by: Viwat Vchirawongkwin <viwat.v@chula.ac.th>
1 parent 9bcccd8 commit 0cecfc5

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

‎docs/specifications/website.md‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -417,18 +417,16 @@ a dynamic route renderer.
417417
Website source and tests participate in the no-leak gate. Comment-capable source
418418
files carry the MIT SPDX header. Generated output and dependencies are ignored.
419419

420-
The vinext preview build currently brings in `image-size` 2.0.2, for which no
421-
patched npm release exists for GHSA-w3rx-r6r6-pgpr or
422-
GHSA-5p2g-fcmc-qvqq. This temporary exception is limited to the build-only
423-
preview dependency: production MUST continue to deploy only the checked static
424-
`out/` tree and MUST NOT run or upload the Node dependency closure. While the
425-
exception exists, authored App Router source MUST NOT add filesystem metadata
426-
image routes named `favicon`, `icon`, `apple-icon`, `opengraph-image`, or
427-
`twitter-image`, because vinext may pass those files to the affected parser at
428-
build time. The release gate MUST enforce that absence before either build,
429-
and maintainers MUST recheck the exception on every vinext or `image-size`
430-
update and remove it as soon as a patched compatible release is available.
431-
This exception does not permit an otherwise-fixable audit finding to remain.
420+
The committed website dependency closure MUST contain no package with a known
421+
high- or critical-severity npm advisory. `npm run check` MUST enforce that
422+
contract with `npm audit --audit-level=high`. The Sites adapter MUST be pinned
423+
to a compatible vinext release whose installed npm package dependency closure
424+
does not contain `image-size` 2.0.2, the package described by
425+
GHSA-w3rx-r6r6-pgpr and GHSA-5p2g-fcmc-qvqq; a deterministic lockfile contract
426+
MUST reject its reintroduction. Authored App Router source MUST continue to use
427+
static files in `public/` instead of filesystem metadata image routes named
428+
`favicon`, `icon`, `apple-icon`, `opengraph-image`, or `twitter-image`; the
429+
release gate MUST enforce that absence before either build.
432430

433431
### 6.1 Canonical production origin
434432

0 commit comments

Comments
 (0)