next-drupal
next-drupal copied to clipboard
Issue 843: Revalidate node path alias instead of node/#
This pull request is for: (mark with an "x")
- [ ]
examples/* - [X ]
modules/next - [ ]
packages/next-drupal - [ ]
starters/basic-starter - [ ]
starters/graphql-starter - [ ]
starters/pages-starter - [ ] Other
GitHub Issue: #843 Please add a link to the GitHub issue where this problem is discussed.
- [ ] I need help adding tests. (mark with an "x") Code changes need test coverage. If you don't know how to make tests, check this box to ask for help.
Describe your changes
Refactor the parameter on the event to use the url object so that the path alias is revalidated on node insert.
If applicable, add screenshots to help explain your issue.
@pookmish is attempting to deploy a commit to the Chapter Three Team on Vercel.
A member of the Team first needs to authorize it.
@pookmish I've confirmed that it works as expected. Looks great!
This is most probably related: https://github.com/chapter-three/next-drupal/issues/460