Netlify and node js
I am trying to serve my blog website on netlify, its a node js server that runs everything, how can I get it to run? I am unsure of what my configuration should look like, and it failed my building. Build settings are attached below:
19 Replies
You can not run a full node server on Netlify
It can only run function and they spin up and run then it shuts down again.
"serverless" a server thats not a server
Create functions
Create functions source files in TypeScript, JavaScript, and Go. Use environment variables with functions, manage dependencies, and test locally.
and on the Edge! https://docs.netlify.com/edge-functions/overview/
Edge Functions overview
Edge Functions connect our platform with an open runtime standard at the network edge, allowing fast, personalized web experiences in a dev ecosystem.
I guess the first question should be "what are you hosting"
Which stack... tech w/e
Node JS server with HTML, and CSS, with supabase. its just a simple blog website that I am starting work on
nodeJS server with what?
Express?
again not the host I think you want xD
You need a nodeJS server host
https://www.netlify.com/integrations/supabase/
like they have their own way to do supabase even.
Netlify and Vercel are very specific kinds of hosts "serverless"
meaning no running node server 😄
Yea with express
You will need to find a different host then
or setup serverless functions (which I have no idea how in Express, but its not going to be like you have now with supabase though)
Would Vercel be a good option?
no as I said its the exact same thing
serverless hosting
You need a nodeJS server
Oh, I didn't see that, I am blind
You can get a DO container or something personally I would get a VPS and never worry about what env you need
but its a bit more learning cause you are doing devops 😄
https://discord.com/channels/436251713830125568/1149068994255540286
This is what I use and its applicable to anything not just SvelteKit.
I host WP sites/Django/Sveltekit(nodejs)/static
other services I can self host too like Plausible etc.
If you want a simple solution you would probably want to get a Container from Digital ocean? 🤷♂️
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Might be another option that has a free teir?
VPS (not free typically) you would have to pay a bit a month (cheap as 5$/m though)
Oh hey I stand corrected btw
Express on Netlify
Learn about Express on our platform. Deploy Express apps as Netlify Functions and create your own serverless REST API.
again though you are going to need to wrap things in serverless functions
I surely thought it would be easier than this.. thanks for your help b1
Just make sure you understand the why/how etc
SSR/Serverless/SSG/Static cause how you render will always determine how you host.
👍