-
Notifications
You must be signed in to change notification settings - Fork 9
Add support for Next.js >= 13.2 #6
base: main
Are you sure you want to change the base?
Conversation
fixed: brhx#4 `ensureApiPage` was removed in v13.1.7-cannary.14 https://github.com/vercel/next.js/pull/45716/files#diff-2f6fd5a9538abfaf3d5b76a82a8d1ffa029f84a36f0cdae5460520c5cfc2db6bL1402
brhx
left a comment
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.
Excellent spot, thank you! Please could you also update the README.md with the tested version?
|
I have updated the |
|
The typescript type check fails because it needs to be aware of both possible versions of |
|
I see,
But looks like |
This reverts commit f329a53.
|
I still kept the Not sure when i was added so can not garanti it works with a version lower than 13.1.6. |
brhx
left a comment
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.
Oooh I like this solution! Please could you change it to just ensureEdgeFunction and I will give it a test and merge?
Changed ensurePage to use ensureEdgeFunction Change it to just ensureEdgeFunction
Fixes #4
ensureApiPagewas removed inv13.1.7-canary.14https://github.com/vercel/next.js/pull/45716/files#diff-2f6fd5a9538abfaf3d5b76a82a8d1ffa029f84a36f0cdae5460520c5cfc2db6bL1402