Closed yuxxeun closed 1 year ago
This needs to be investigated on laravel side first. There aren't any issues reported related to this to Vite. I guess it's something wrong with your configuration or laravel sends a special request to Vite.
This needs to be investigated on laravel side first. There aren't any issues reported related to this to Vite. I guess it's something wrong with your configuration or laravel sends a special request to Vite.
Yes, it was solved with the command npm run dev -- --host 10.10.x.x --port 3000
Describe the bug
I just build an app with
Laravel 9.x
withvite v3.0
for module bundler. Whenever i run with normal mode:php artisan serve
for running laravel andnpm run dev
for running vite, everythings goes to normal.But, when i want to share this app through ip addresse and i run command
php artisan serve --host=ip_address --port=8000
&npm run dev --host
mycss
&javascript
not loaded and theview
automatically brokenI have try several command but the assets still not loaded
Reproduction
http:/localhost:8000
Steps to reproduce
npm run dev --host 0.0.0.0
npm run dev --host 0.0.0.0:8000
npm run dev --host=ip_address --port=8000
System Info
Used Package Manager
npm
Logs
$ npm run build --debug
vite v3.2.4 building for production... ✓ 49 modules transformed. public/build/assets/SpaceMono-Regular.61a4bcc4.woff2 31.58 KiB public/build/assets/BasementGrotesque-Black.d2ea0954.woff2 17.36 KiB public/build/assets/Silk-Serif-Black.91331f3b.woff2 20.76 KiB public/build/assets/Neue-Montreal-Regular-400.8b139cb2.woff2 18.02 KiB public/build/assets/BasementGrotesque-Display.892b4f03.woff2 10.24 KiB public/build/manifest.json 1.13 KiB public/build/assets/app.9423bfe9.css 42.87 KiB / gzip: 7.65 KiB public/build/assets/app.9e5992c8.js
Validations