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:
No description
19 Replies
b1mind
b1mind15mo ago
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
b1mind
b1mind15mo ago
Create functions
Create functions source files in TypeScript, JavaScript, and Go. Use environment variables with functions, manage dependencies, and test locally.
b1mind
b1mind15mo ago
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.
b1mind
b1mind15mo ago
I guess the first question should be "what are you hosting" Which stack... tech w/e
Daniel Everett
Daniel EverettOP15mo ago
Node JS server with HTML, and CSS, with supabase. its just a simple blog website that I am starting work on
b1mind
b1mind15mo ago
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 😄
Daniel Everett
Daniel EverettOP15mo ago
Yea with express
b1mind
b1mind15mo ago
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)
Daniel Everett
Daniel EverettOP15mo ago
Would Vercel be a good option?
b1mind
b1mind15mo ago
no as I said its the exact same thing serverless hosting You need a nodeJS server
Daniel Everett
Daniel EverettOP15mo ago
Oh, I didn't see that, I am blind
b1mind
b1mind15mo ago
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? 🤷‍♂️
b1mind
b1mind15mo ago
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
b1mind
b1mind15mo ago
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
b1mind
b1mind15mo ago
Express on Netlify
Learn about Express on our platform. Deploy Express apps as Netlify Functions and create your own serverless REST API.
b1mind
b1mind15mo ago
again though you are going to need to wrap things in serverless functions
Daniel Everett
Daniel EverettOP15mo ago
I surely thought it would be easier than this.. thanks for your help b1
b1mind
b1mind15mo ago
Just make sure you understand the why/how etc SSR/Serverless/SSG/Static cause how you render will always determine how you host.
Daniel Everett
Daniel EverettOP15mo ago
👍
Want results from more Discord servers?
Add your server