# Vite still wants to load from dev url after building and deploying my Sage 11 Project

**URL:** https://discourse.roots.io/t/vite-still-wants-to-load-from-dev-url-after-building-and-deploying-my-sage-11-project/29833
**Category:** sage
**Created:** 2025-08-10T14:34:56Z
**Posts:** 5
**Showing post:** 2 of 5

## Post 2 by @ben — 2025-08-10T15:01:27Z

> [@Deploying while Vite dev server is active causes broken URLs due to public/hot file existing](https://discourse.roots.io/t/deploying-while-vite-dev-server-is-active-causes-broken-urls-due-to-public-hot-file-existing/29601):
>
> I’m using the full Roots stack (Trellis, Bedrock, Sage 11 with Vite). Everything works fine locally, but I’ve run into a problem when deploying. If I have the dev server running (npm run dev) at the time of deployment, the file web/app/themes/sage/public/hot is present in my local project and gets synced to the production server via Trellis (synchronize task). This file causes Sage to load assets from http://[::1]:5173, which completely breaks the site in production: I get CORS errors, fonts f…

---

_[View the full topic](https://discourse.roots.io/t/vite-still-wants-to-load-from-dev-url-after-building-and-deploying-my-sage-11-project/29833)._
