DEV Community

Kenny Whyte
Kenny Whyte

Posted on

Is there a way to deploy Node app with Netlify?

Quick question.

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

Please let me know.

Thanks!

Top comments (11)

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

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
 
lucis profile image
Lucis • Edited

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

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

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

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...

Collapse
 
kawhyte profile image
Kenny Whyte

Thanks! I deployed it using Heroku.

Collapse
 
joyalgs profile image
Joyalgs

Does anyone deployed express app in netlify. I tried with serverless-http but it was throwing handler undefined error.

Collapse
 
l4znet profile image
Charly Escalona

Hi! Netlify is for static app but, good news! You can use Vercel for JS app, and deploy node app using a trick, check this -> dev.to/hte305/deploy-express-js-ap...

Collapse
 
l4znet profile image
Charly Escalona

I've tried to deploy a Express app on Vercel, and that's work perfectly!