-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
add examples for migration v5 #1712
Conversation
✅ Deploy Preview for expressjscom-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
e4f794e
to
a6c2f37
Compare
en/guide/migrating-5.md
Outdated
``` | ||
|
||
{% capture note_wildcard %} | ||
If your defined route is `/*splat`, it will not include `/`, so you will need to make the route optional. |
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.
@blakeembrey
Is this wording correct? It’s a recurring problem i’ve seen, which is why I wanted to add that note, but I’m not sure if this is the best phrasing.
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.
so you will need to make the route optional.
I am not sure I follow what you are saying here. Is it not enough to just end that sentence after the first part?
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.
@wesleytodd I changed the phrasing a bit, I think it’s clearer now.
*splat
matches any path without the root path. If you need to match the root path as well/
, you can use/{*splat}
, wrapping the wildcard in braces.
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.
Other than the one comment I made (which is more of asking for clarification than a blocker) this looks good!
a6c2f37
to
7452886
Compare
Examples are added for better understanding of the changes that were made; this was an idea that came from #1705.