Hi everyone, I’m hosting my restaurant-related website (which focuses on Texas Roadhouse menus and reviews) on Netlify, and I’ve recently run into some serious build and deployment issues. The site used to deploy flawlessly for months, but ever since I added a few new dynamic pages and made some updates to my build scripts, Netlify fails to build the project properly. The local version works perfectly on my development machine, but the live deployment either breaks mid-build or shows missing assets.
The first issue started when I added several new menu pages generated through a static site generator (I’m using Eleventy). Locally, the build completes with no warnings, but on Netlify, the build log throws intermittent errors like “Failed to fetch resource” and “Cannot find module.” I’ve already checked the build command and publish directory, and both are set correctly (npm run build
and dist/
). Oddly, the build sometimes passes after a redeploy, but then the live preview shows incomplete HTML files or missing images.
Another strange behavior is that some images (like the Texas Roadhouse food photos) fail to load after deployment, even though they’re present in the Git repository and referenced correctly. I tried changing the image paths to absolute URLs, clearing cache, and using the “Clear Build Cache and Redeploy” option in Netlify, but nothing seems to fix it. I’m starting to suspect this might be related to case sensitivity in file names or the way Netlify handles asset bundling.
I also noticed that my environment variables aren’t always being picked up correctly. I’m using a few API keys (for analytics and structured data) stored in the Netlify dashboard under Site Settings → Build & Deploy → Environment. Sometimes they load fine, but other times the build logs indicate undefined variables. I’ve verified the variable names, but it feels like Netlify’s build environment occasionally misses them. Has anyone else faced similar behavior with environment variables?
Performance has also dropped slightly since these issues began. Pages that used to load in under two seconds are now taking much longer, especially the ones that fetch dynamic content. I haven’t changed much in terms of dependencies, so I wonder if this could be due to the new image assets or if my build process needs optimization for Netlify’s environment. I’m also unsure if enabling “Post Processing” options like minification or asset optimization could be causing conflicts.
Has anyone experienced similar deployment or build issues when adding dynamic or image-heavy pages to a Netlify-hosted site? Should I consider changing my build command or adjusting the file structure to make Netlify handle it better? Any insights would be really appreciated I’ve been stuck redeploying multiple times a day trying to debug this, and I’d love to get my restaurant website back to fully stable builds again.