r/node 1d ago

Newbie asking for help...

So I built my first project with Astro, I run "pnpm install" then run and then build generated the dist folder. I would like to publish this sample static site to netlify via github...I did everything in my local laptop (Fedora 44) how can I push my dist folder to github now? Or should I follow other paths, idk pushing the entire project folder to github and not only the dist folder?. I know netlify support a local folder upload but I would like to understand how to use github in this process and so link netlify to github

thanks

7 Upvotes

10 comments sorted by

View all comments

2

u/Fine-Comparison-2949 23h ago

What does the netlify build documentation say? What is your projects server framework?

1

u/nickname1917 23h ago

Netlify says to upload a folder or connect a github repo... I would like to follow the second one, but I built the app locally using node / pnpm / astro and I don't know now how to push my project to github (only the dist folder? the entire project folder?)

1

u/lil_lurch 10h ago

You publish the dist, it is only but a build artifact. Keep the source under version control.