Next can't be built when using API routes (Next 9.4) #12785
-
|
I'm using API routes feature from Next: https://nextjs.org/docs/api-routes/introduction But faced an issue when doing Page with request to API route: fetch client: Error during |
Beta Was this translation helpful? Give feedback.
Answered by
brianlovin
May 12, 2020
Replies: 1 comment 8 replies
-
|
The solution to this is to basically use the API functions directly in |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
avxkim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The solution to this is to basically use the API functions directly in
getStaticProps- see #11210 (comment) for more info