-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[v6] trailing slash never for endpoints with file extension #12467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.