Live data from Hacker News

Netlify Dev

netlify.com

11–20 of 237 posts

Re: Netlify Dev

#11
Great move by Netlify.. they offer a lot of features such as asset optimization or authentication that can now be evaluated locally.

Currently I use netlify's redirects in production and maintain equivalent nginx configs for dev parity and a fallback just in case.

I'm super happy with the netlify build/edge products.

Re: Netlify Dev

#12
post #7

I instantly thought of the incomplete/error prone Zeit Now dev that was introduced a few weeks ago. If this(Netlify Dev) can replicate the entire system stably I might move on to Netlify Edge. Replicating and testing is a pretty big deal :-) Offtopic, but can anyone explain the differences between Zeit Now v2 and Netlify Edge?

Yes, I have the feeling the whole "replicate locally" goes in the wrong direction. You're just lying to yourself when saying local is the same as cloud...

Why? They're just computers, what makes your local machine that different from a Netlify server?

Re: Netlify Dev

#13

I instantly thought of the incomplete/error prone Zeit Now dev that was introduced a few weeks ago. If this(Netlify Dev) can replicate the entire system stably I might move on to Netlify Edge. Replicating and testing is a pretty big deal :-) Offtopic, but can anyone explain the differences between Zeit Now v2 and Netlify Edge?

As far as I'm aware, zeit now can run server side code whereas netlify edge can only do at most some serverless functions, and is otherwise focused entirely on serving the front end

Re: Netlify Dev

#14
post #7

I instantly thought of the incomplete/error prone Zeit Now dev that was introduced a few weeks ago. If this(Netlify Dev) can replicate the entire system stably I might move on to Netlify Edge. Replicating and testing is a pretty big deal :-) Offtopic, but can anyone explain the differences between Zeit Now v2 and Netlify Edge?

Yes, I have the feeling the whole "replicate locally" goes in the wrong direction. You're just lying to yourself when saying local is the same as cloud...

If your cloud edge functions only (completely stateless functions or containers run without any directly attached data stores) then you can pretty reliably simulate it locally - you can configure your own dev machine as an edge node.

Stuff like Lambda@Edge, Cloudflare Workers etc all have very strictly defined APIs that are executed on V8 (modified for security, but not enough to be incompatible). If you run a pure function on your local machine you can be pretty sure it’ll run on the edge.

We’ve already done this quite well with Docker - the image you run locally is cryptographically the same binary bytes you’ll run on production. It’s not that surprising to see it for edge functions.

Re: Netlify Dev

#15

I instantly thought of the incomplete/error prone Zeit Now dev that was introduced a few weeks ago. If this(Netlify Dev) can replicate the entire system stably I might move on to Netlify Edge. Replicating and testing is a pretty big deal :-) Offtopic, but can anyone explain the differences between Zeit Now v2 and Netlify Edge?

As far as I'm aware, zeit now can run server side code whereas netlify edge can only do at most some serverless functions, and is otherwise focused entirely on serving the front end

Zeit Now also seems to target serverless functions, not stateful applications.

Re: Netlify Dev

#16
post #7

Earlier quoted context omitted.

Yes, I have the feeling the whole "replicate locally" goes in the wrong direction. You're just lying to yourself when saying local is the same as cloud...

Why? They're just computers, what makes your local machine that different from a Netlify server?

Some npms require binaries, like jq or sed, and you could have a different glibc.

Re: Netlify Dev

#18
This is brilliant! I like Netlify a lot. A lot of my day to day infrastructure work doesn't rely on them, but I have used them for small sites here and there. Solid company!

Re: Netlify Dev

#19
post #17

I have no idea what this does. Site generator? functions? edge logic? What?

Sounds like you should start by reading about what Netlify does.

Re: Netlify Dev

#20
post #17

I have no idea what this does. Site generator? functions? edge logic? What?

It runs their platform on your laptop. If you want to know what "their platform" is, you can just click on the Products link.

Essentially, it takes your code (from a repository), runs a build command (if configured), and serves the result over HTTP on some domain.

Post reply on HN