A small astro site with just a few pages and images but the deploys are taking around 8-10 mins even after small edits. Just netlify forums and a couple of env variables. could any expert here guide me through this?? TIA
@LoriBeard This forum doesn’t have many active members, so you’re unlikely to find much guidance here.
You could try the Astro community:
https://community.astro.build/
Most importantly, how long does a full build of your site take when you run it locally?
(Make sure to run the build command, not any development server command.)
Thank so much Nathan!
Hi there,
Thanks for reaching out! Build times that long definitely sound unusual for a small Astro site. A few things you can check:
-
Check your build logs – Look for any steps that seem to hang or take longer than expected. Sometimes dependency installs or image optimization can slow things down.
-
Enable caching – If you haven’t already, try using Netlify’s build cache to persist
node_modulesor other dependencies between builds. -
Review Astro and plugin versions – Outdated packages or large dependencies can sometimes cause longer build times. Running a quick
npm dedupeor updating Astro might help. -
Confirm your build command – Make sure the build command (
astro build) is efficient and that you’re not running extra processes unintentionally. -
Try a local build test – Run
npm run buildlocally to see if the slowness happens there as well. If it does, it’s likely an issue in the project setup rather than Netlify’s infrastructure.
If none of those help, please share your build log and site ID so we can take a closer look on our end.