Ok first of all try stopping npm run dev and run npm run build instead. Does the page itself work now ?
Resources not on same port
I believe I have a very similar problem - I setup a brand new laravel - inertia - Vue environment by following all the docs, then I run npr run dev and get following: ➜ Local: ----127.0.0.1:5173/ ➜ Network: use --host to expose
LARAVEL v9.35.1 plugin v0.6.1
➜ APP_URL: ----localhost
I learned that the app werbserver isn't running so I run php artisan serve and get: php artisan serve
INFO Server running on [----127.0.0.1:8000].
I go to that URL and it serves the page without the resources - my console has following errors:
127.0.0.1/:6 GET ----/127.0.0.1:5173/css/app.css net::ERR_ABORTED 404 (Not Found) 127.0.0.1/:7 GET ----127.0.0.1:5173/js/app.js net::ERR_ABORTED 404 (Not Found)
(---- placehodler for protocol since I can't post urls) How can I fix this without hacking my environment?
both servers are running - I can go to 127.0.0.1:5173 and see the default page for Vite but when I go to localhost I get the forbidden response - when I go to 127.0.0.1:8000 I get my app but my resources are not loading
Please or to participate in this conversation.