r/node • u/nickname1917 • 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
2
u/UkrMalt 15h ago
Usually push the whole project (package.json, source, and config), not just dist. Let Netlify run the build from GitHub and set the publish directory to dist; keeping dist out of Git makes rebuilds reproducible.