Skip to content

docs: add experimental advanced routing reference page#13792

Merged
ArmandPhilippot merged 35 commits intov6.3from
advanced-routing
May 6, 2026
Merged

docs: add experimental advanced routing reference page#13792
ArmandPhilippot merged 35 commits intov6.3from
advanced-routing

Conversation

@matthewp
Copy link
Copy Markdown
Contributor

Description (required)

Documents the upcoming experimental.advancedRouting flag.

For Astro version: 6.2. See astro PR #16366.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 27, 2026

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 0effd88
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/69f9e673ed3eda00083ede9f
😎 Deploy Preview https://deploy-preview-13792--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@astrobot-houston
Copy link
Copy Markdown
Contributor

astrobot-houston commented Apr 27, 2026

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/reference/api-reference.mdx Source changed, localizations will be marked as outdated.
en/reference/experimental-flags/advanced-routing.mdx Localization added, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Copy link
Copy Markdown
Member

@ArmandPhilippot ArmandPhilippot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Matthew, the wording looks good to me! No suggestions to improve that, only for the formatting:

  • We usually don't put the arguments in the headings (ie. middleware() instead of middleware(state, next)). This helps make the links easier to parse when sharing them: #middleware instead of #middlewarestate-next
  • I think an API block for the methods is also helpful since some of them have different arguments or different return types.

I also noticed a few em dashes. We usually don't use them in docs. I don't know if we want to stay consistent with this or not. I don't have a strong opinion.

Question: Do we need a section for ContextProvider?

I see that the FetchState types often refer to create and finalize. Maybe it would be helpful to document it so we can link to ContextProvider.create() and ContextProvider.finalize(). I think this helps users navigate easily to between related sections.

Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
matthewp and others added 7 commits April 28, 2026 16:38
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
matthewp and others added 12 commits April 28, 2026 16:56
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
Copy link
Copy Markdown
Member

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @matthewp, just adding a few suggestions to remove all these emdashes that are not necessary, and then LGTM

Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
@ArmandPhilippot ArmandPhilippot added the minor-release For the next minor release; in the milestone, "merge queue" = approved for merging on release day. label May 1, 2026
@ArmandPhilippot ArmandPhilippot added this to the 6.3 milestone May 1, 2026
Comment thread src/content/docs/en/reference/experimental-flags/advanced-routing.mdx Outdated
matthewp and others added 11 commits May 5, 2026 08:28
…ing.mdx

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
…ing.mdx

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
…ing.mdx

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
…ing.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ing.mdx

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
…ing.mdx

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
…ing.mdx

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
…ing.mdx

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
@matthewp
Copy link
Copy Markdown
Contributor Author

matthewp commented May 5, 2026

@ArmandPhilippot I've updated this PR to also document cookies.consume().

Copy link
Copy Markdown
Member

@ArmandPhilippot ArmandPhilippot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This looks ready to me! 🙌🏽

Copy link
Copy Markdown
Member

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ArmandPhilippot ArmandPhilippot changed the base branch from main to v6.3 May 6, 2026 19:57
@ArmandPhilippot ArmandPhilippot merged commit 5a1c9b2 into v6.3 May 6, 2026
10 checks passed
@ArmandPhilippot ArmandPhilippot deleted the advanced-routing branch May 6, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor-release For the next minor release; in the milestone, "merge queue" = approved for merging on release day.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants