Commit eb2e7862 authored by Vercel's avatar Vercel

Fix: Broken links in error docs use hash anchors (`#runtime`,…

Fix: Broken links in error docs use hash anchors (`#runtime`, `#preferredregion`) pointing to the route-segment-config index page, but `runtime` and `preferredRegion` are separate subpages, not anchors on the index.

This commit fixes the issue reported at errors/edge-runtime-deprecated.mdx:23

**Bug explanation:**

The route segment config documentation was restructured into separate subpages under `docs/01-app/03-api-reference/03-file-conventions/02-route-segment-config/`. Each config option (`runtime`, `preferredRegion`, `dynamicParams`, etc.) now has its own `.mdx` file rather than being a heading/section on a single page.

However, two error documentation files still use the old hash-anchor link format:
- `errors/edge-runtime-deprecated.mdx` line 23: `/docs/app/api-reference/file-conventions/route-segment-config#runtime` — the `#runtime` anchor doesn't exist on the index page
- `errors/preferred-region-deprecated.mdx` line 21: `/docs/app/api-reference/file-conventions/route-segment-config#preferredregion` — the `#preferredregion` anchor doesn't exist on the index page (and also has wrong casing — `preferredregion` vs `preferredRegion`)

The index page at `route-segment-config/index.mdx` confirms this: it contains no `## runtime` or `## preferredRegion` headings. Instead, it links to subpages like `/docs/app/api-reference/file-conventions/route-segment-config/runtime`.

**Fix explanation:**

Updated both links to point to the correct subpage URLs:
- `#runtime` → `/runtime` (subpage path)
- `#preferredregion` → `/preferredRegion` (subpage path, with correct casing)

This matches the linking pattern already used in the index page's table.
Co-authored-by: 's avatarVercel <vercel[bot]@users.noreply.github.com>
Co-authored-by: 's avatartimneutkens <tim@timneutkens.nl>
parent 2a19c36c
...@@ -20,4 +20,4 @@ This applies to all route files that support the `runtime` segment config: `page ...@@ -20,4 +20,4 @@ This applies to all route files that support the `runtime` segment config: `page
## Useful Links ## Useful Links
- [Route Segment Config](/docs/app/api-reference/file-conventions/route-segment-config#runtime) - [Route Segment Config](/docs/app/api-reference/file-conventions/route-segment-config/runtime)
...@@ -18,4 +18,4 @@ This applies to all route files that support the `preferredRegion` segment confi ...@@ -18,4 +18,4 @@ This applies to all route files that support the `preferredRegion` segment confi
## Useful Links ## Useful Links
- [Route Segment Config](/docs/app/api-reference/file-conventions/route-segment-config#preferredregion) - [Route Segment Config](/docs/app/api-reference/file-conventions/route-segment-config/preferredRegion)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment