You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know what else to call it (suggestions?). It is just a function that checks if the client is a browser and sends raw data or webpage accordingly. similar to what deno.land/x does.
Why Next.js API Routes and not Vercel Functions
Because Vercel Functions are "proprietary" and in case we ever need to migrate to some other platform, we would have to rebuild the functions for the platform we migrate to. Using Next.js would mean that the functions remain portable and can be run by any serverless platform (or even bare metal servers).
Then why Vercel at all? Why not run it on our own server?
Because with a great server comes great maintenance requirements 😛. If we choose to use a custom server we would have to:
Set up and maintain SSL
Setup auto-deployment for all the branches and create a companion GitHub bot for it
Configure CDNs to properly cache requests
Set up load balancers and other (D)DOS protection
Deal with extra bandwidth costs in case of increased usage
And all of the above while paying for each of them in time and man-power in addition to money
The whole point of serverless is the is no one dedicated server. It's a cluster of many on-demand servers that run your code and scrap everything after that. Using Vercel save us from all of that headache and more.
Moreover, if you use Next.js, Vercel automatically pushes certain security patches. ref: GHSA-X56P-C8CG-Q435
The text was updated successfully, but these errors were encountered:
Serverless Functions
Magic URL
X-Deno-*
headersNotes
I don't know what else to call it (suggestions?). It is just a function that checks if the client is a browser and sends raw data or webpage accordingly. similar to what
deno.land/x
does.Because Vercel Functions are "proprietary" and in case we ever need to migrate to some other platform, we would have to rebuild the functions for the platform we migrate to. Using Next.js would mean that the functions remain portable and can be run by any serverless platform (or even bare metal servers).
Because with a great server comes great maintenance requirements 😛. If we choose to use a custom server we would have to:
The whole point of serverless is the is no one dedicated server. It's a cluster of many on-demand servers that run your code and scrap everything after that. Using Vercel save us from all of that headache and more.
Moreover, if you use Next.js, Vercel automatically pushes certain security patches. ref:
GHSA-X56P-C8CG-Q435
The text was updated successfully, but these errors were encountered: