Skip to content

Commit 7b76200

Browse files
committed
docs: point cspNonce at the package the demo imports it from
The global-error demo's comment named @webjsdev/server while the file imports cspNonce from @webjsdev/core two lines below, which is also the import every other doc surface recommends. The previous commit rewrote that sentence and carried the stale package name through. The prune-note rule cited a header on the generated app/page.ts that does not exist. That instruction is a comment in the generator, above the writeFile call, so it never reaches a generated app. The rule now points only at gallery:clear, which is a claim that holds.
1 parent 325bc0f commit 7b76200

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.claude/skills/webjs-scaffold-sync/SKILL.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ Run the mandatory generate + boot + check verifications in PARALLEL when more th
215215
spanning several paths (the auth card names its route, its module, its api
216216
routes and its schema column), or one that depends on another (the
217217
server-actions card says to prune it with auth). A self-contained demo needs
218-
none, since the generated `app/page.ts` header tells the agent to delete the
219-
`app/features/<x>` route with its `modules/<x>`, and `npm run gallery:clear`
220-
sheds the lot. The scaffold teaches by its comments, and a thin demo is a
218+
none, since `npm run gallery:clear` sheds the lot. The scaffold teaches by its comments, and a thin demo is a
221219
bug.
222220

223221
## Audit-mode procedure (sweep the scaffold for drift)

packages/cli/templates/gallery/app/global-error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// and no boot script. Keep it static HTML with no components or hydration: a
77
// last-resort page must not depend on the module system that may have just
88
// failed. (Under an opt-in CSP, an inline <script> here needs a nonce via
9-
// cspNonce() from @webjsdev/server. An inline <style> only needs one if you
9+
// cspNonce() from @webjsdev/core. An inline <style> only needs one if you
1010
// tighten style-src, since the default policy allows inline style outright.)
1111
//
1212
// Distinct from error.ts (a nested, per-segment boundary that renders a body

0 commit comments

Comments
 (0)