Hello everyone, I am new to Netlify Functions and Edge Functions. I would like to create a membership area (authing and overriding the static file response, such as cutting the main content or redirecting to somewhere if visitors haven’t logged in) on my static website.
Can you suggest any comparisons between Functions and Edge Functions? Which option would be better for my specific use case?
Thanks.
The only times when I’d personally recommend using an Edge Function:
- when you want to modify the request/response
- when you want to stream some data for a long time
- when you’d like to save money (Edge Functions are cheaper)
for everything else, you should be able to use Functions
- while they’re costlier, they provide a better support for
npm
modules and you might run into lesser issues while developing them
2 Likes
Thank you for your professional suggestions. Edge Functions is what I need to modify the response conditionally.
1 Like