News for hackers. Stuff that matters.
Re:Netlify Dev by bobfunk on Tuesday April 09, 2019 @06:30PM (#19619618)
You can do the same with Netlify functions. Here's an example:

https://github.com/netlify-labs/netlify-functions-express

Re:Netlify Dev by rymate1234 on Wednesday April 10, 2019 @04:56AM (#19622955)
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...

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

Re:Netlify Dev by bobfunk on Wednesday April 10, 2019 @10:53AM (#19625272)
You 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!