F
Filament2mo ago
Arzu

Vite not loading on server?

i think i did something wrong but i cant figure it out. after finishing my project locally, i made npm run build. then after that i moved all the files to my linux server. i changed the app env to production, updated the app url to my url. now when im trying to enter the panel i made: GET http://[::1]:5173/resources/css/filament/panel/theme.css net::ERR_CONNECTION_REFUSED panel:73 GET http://[::1]:5173/@vite/client net::ERR_CONNECTION_REFUSED those are the errors i getting, what can be the issue?
3 Replies
toeknee
toeknee2mo ago
After updating env, try npm run build
Arzu
Arzu2mo ago
i ran it on the server as well, succedded and made sure i have the build files. still same issue the strange thing is the admin panel works, but the home page and user panel are not, they are broken and trying to run the vite locally for some reason
Vp
Vp2mo ago
Someone ask the same question in Laravel channel, and he mark this link (https://stackoverflow.com/questions/73783480/neterr-connection-refused-using-laravel-9-reactjs-with-vite-js/75596356#75596356) as a resolver.. hope this help too
Want results from more Discord servers?
Add your server