7 ms·
That example doesn't serve the main website, like all netlify functions they can only handle requests under the .netlify route for functions https://express-via
by rymate1234 7y ago
That example doesn't serve the main website, like all netlify functions they can only handle requests under the .netlify route for functions https://express-via-functions.netlify.com/.netlify/functions/aws-serverless-express https://express-via-functions.netlify.com/.netlify/functions...
Whereas on Zeit Now the root of the website can be a web server written in multiple languages, and offer the ability to make your own "Lambda Builder" if necessary https://zeit.co/docs/v2/deployments/builders/overview https://zeit.co/docs/v2/deployments/builders/overview
- bobfunk 7y agoYou can rewrite URLs to serve the main website as well. We're generally bullish on but DJing server side rendering, but a rule like this totally works: /* /.netlify/functions/app/:splat 200!