Laravel Vite Assets Fail on Custom Domain? Set server.host
Originally published at recca0120.github.io
When running npm run dev with the default Laravel Vite config, @vite points asset paths to http://localhost. If your dev environment uses a custom domain, assets will fail to load.
Setting server.host
Add s...
recca0120.hashnode.dev1 min read