Replies: 1 comment 1 reply
-
API routes work fine when running |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
[Next.js on Vercel] Hello, is there any difference between SSR page and a function placed in /pages/api? thinking both can return json data and both are turned into serverless functions.
I suppose that on Vercel there is no difference afterall, but on node.js server target outside of Vercel there is no /pages/api, so only SSR pages are left (and they are ofc running not in a serverless manner). Is this correct?
"Pages that use Server-Side Rendering and API routes will automatically become isolated Serverless Functions." https://nextjs.org/docs/deployment
Beta Was this translation helpful? Give feedback.
All reactions