-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat: support for basePath #374
Conversation
c0b655f
to
d0fb79c
Compare
/getStaticProps/withFallback/:id /foo/getStaticProps/withFallback/:id 301! | ||
/getServerSideProps/:id /foo/getServerSideProps/:id 301! | ||
/getServerSideProps/all /foo/getServerSideProps/all/:[slug] 301! | ||
/getServerSideProps/all/* /foo/getServerSideProps/all/:[slug] 301! |
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.
yeah. uhhhh
you absolutely love to see failing tests on one os/node version 💯 |
Any idea what's going on here? It seems so strange |
@ascorbic it has to be the basePathSortFunc on that node version, that's the only thing that could affect the order like this. as for what's wrong with that sorting or includes check on that version, i have no idea 🙃 |
c1e09f3
to
e1c090b
Compare
hm. yeah. its def this sorting issue, because this second try(/commit) failed in a different order than the first. will continue to see how i can eliminate it or make it independent of arg order (like that node issue suggests) |
e1c090b
to
087fee1
Compare
087fee1
to
906d9f6
Compare
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.
🎉
Fixes #131
note: my first stab at this work included touching every single pageType/redirects.js file (the way we did with i18n) to handle basePath there. with that flowing into several helpers and needing to import the config everywhere again, i opted for the performance cost of needing to loop over all the redirects after theyre collected (if there's a basePath configured) and building a new, basePath-supported collection of redirects. i have my old Logic Everywhere TM commit in a separate branch if anyone's curious lol
remaining issues: