Laravel Vite Assets Fail on Custom Domain? Set server.host

📰 Dev.to · Recca Tsai

Laravel Vite defaults to localhost, breaking assets on custom domains. Set server.host and server.hmr.host in vite.config.js, or use valetTls for Valet HTTPS.

Published 3 Mar 2026
Read full article → ← Back to Reads