loading...

Is there a way to deploy Node app with Netlify?

kawhyte profile image Kenny Whyte ・1 min read

Quick question.

Is there a way to deploy a Node/express app (with public static files/folders) using Netlify?

Please let me know.

Thanks!

Discussion

pic
Editor guide
Collapse
artemis profile image
Diane

No. Netlify is a static host, with a few added managed capabilities (i.e. a static host on which you can plug some behaviour they manage).

If you want a netlify-like hosting on which you can just throw a node daemon and let the hosting service manage it, you're probably interested in managed hosting, such as Heroku.

Collapse
kawhyte profile image
Kenny Whyte Author

Thanks! I deployed it using Heroku.

Collapse
lucis profile image
Lucis

Netlify Functions is the way to go!

There you can't actually send your express app, but it provides an interface to achieve the same with cloud functions. Check it out, it might suit you even better.

Collapse
kawhyte profile image
Kenny Whyte Author

I saw Netlify functions in my search. I am definitely going to check this out. Thank you.

Collapse
tobiassn profile image
Tobias SN

There’s not. Netlify is only for static sites, ie. sites that don’t have a server. Not in the traditional sense, that is. It does support serverless functions, although that’d require a major server-side rewrite.

If you absolutely need a traditional Node app, there are services that let you host one, although they aren’t free.

Collapse
kawhyte profile image
Kenny Whyte Author

I like Netlify, so I am going to check out serverless functions. I guess this is the perfect opportunity to learn about this technology. Thanks for the tips.

Collapse
vguleaev profile image
Vladislav Guleaev

Nope, but you can use serverless functions. And also can make bested routing inside function.

Collapse
kawhyte profile image
Kenny Whyte Author

Thanks. I am going to check out serverless functions today.

Collapse
jplindstrom profile image
Johan Lindstrom

Kinda... See this article for how to make it easier to use Express to drive the Netlify serverless functions:

netlify.com/blog/2018/09/13/how-to...