next.js
108fe00f - fix: replace docs/canary links with stable docs paths in error messages (#92528)

Commit
3 days ago
fix: replace docs/canary links with stable docs paths in error messages (#92528) ### What? Error messages for the `"use cache"` directive and `after()` API (in `cookies()`, `headers()`, `connection()`) pointed to `/docs/canary/...` instead of `/docs/...`. ### Why? On canary builds, `docs/canary` links can create circular or confusing references. These APIs are stable and their docs live at the standard `/docs/app/...` path. ### How? Replaced all `nextjs.org/docs/canary/` URLs with `nextjs.org/docs/` in: - `crates/next-custom-transforms/src/transforms/server_actions.rs` — the `"use cache"` feature flag error - `crates/next-custom-transforms/tests/errors/use-cache-not-allowed/1/output.stderr` and `2/output.stderr` — matching test fixtures - `packages/next/src/server/request/cookies.ts`, `headers.ts`, `connection.ts` — `after()` errors - `packages/next/errors.json` — compiled error message index (6 occurrences) <!-- NEXT_JS_LLM_PR -->
Author
Parents
Loading