Fix: Remove duplicated signUpHandler #71
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey @fedeya 👋🏼
Thanks a lot for this useful plugin. So far so good except for the build today.
Summary
I was facing a few issues related to
@argon2
and@mapbox/node-pre-gyp
. It was running on the browser side. But I had no idea why.Investigation
I have mainly followed the example folder and by giving a second check I might have found a duplication which can cause some troubles.
Starting NextJS 13 all things related to the server should be within
/app
folder instead. https://nextjs.org/docs/messages/prerender-errorAnswer
So I have basically removed
examples/full-example/src/pages/api/sanity/signUp.ts
becauseexamples/full-example/src/app/api/sanity/signUp.ts
is already there to cover thesignUpHandler
export.Also, I'd recommend adding
"next": ">= 13.0.0"
inpeerDependencies
to be sure everyone is targeting NextJS 13 at least. What do you think ?Issues maybe related
It can potentially solve a few issues: