Replies: 1 comment
-
You can't use You can use http://zeit.co/ or host using This still allows for static pages to exists when using getStaticProps: https://nextjs.org/blog/next-9-3#next-gen-static-site-generation-ssg-support |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Next has a built in API route
https://nextjs.org/docs/api-routes/introduction
but it uses
/pages/api
Is it possible to change the default path from
/api/*
to something else like/myApi/*
?I was thinking about adding it to exportPathMap
https://nextjs.org/docs/api-reference/next.config.js/exportPathMap
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions