[v6] trailing slash never for endpoints with file extension#12467
[v6] trailing slash never for endpoints with file extension#12467florian-lefebvre merged 10 commits intov6from
Conversation
✅ Deploy Preview for astro-docs-2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
Co-authored-by: Matt Kane <m@mk.gg>
sarah11918
left a comment
There was a problem hiding this comment.
Thanks Florian! Left some comments below to see what you think!
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
|
@sarah11918 just checked the docs and we call these routes "static file endpoints" if that helps! |
sarah11918
left a comment
There was a problem hiding this comment.
ugh... pending reviews strike again!
Actually, I'm not entirely sure we do? I was rereading that page and it looks like we have two separate static / SSR route categories, but... the static one defines what these routes are, and the SSR one only describes extra functionality if the route is rendered on demand? (Though one could easily just jump to the later section for on-demand rendered routes, and not realize that we've explained what these are in the "static" section.) So, probably a case of adding SSR on after the fact and not getting the info hierarchy quite right there, tbh 😅 |
|
That's how I understood this part:
|
|
Furthermore, I don't think this page shows any examples of an endpoint that does not contain a file extension before the |
But, I think we mean for this to also be true about the Server Endpoints?
And no examples showing anything without an extension? e.g. we never show how to make something like |
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
|
NWTWWHB for the win!
Yeah I don't think there's a case outside of SSR |
sarah11918
left a comment
There was a problem hiding this comment.
This LGTM, but let's put it in the "breaking changes" category instead of "changed defaults"!
If so, I do think future works should be to explicitly show an example of that in the on-demand rendered section, but out of scope here! |
Co-authored-by: Sarah Rainsberger 5098874+sarah11918@users.noreply.github.com
Description (required)
Related issues & labels (optional)
For Astro version:
6.0. See astro PR #14457.