Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

denabyte's avatar

assets not served on prod, upgraded from L8 to L9 and migrated to Vite

Hey guys, as the title suggests, i upgraded from laravel 8.30 to laravel 9 and migrated from mix to vite. Everything worked fine on local, and php artisan --version returns 9.41. Production is broken however, the body of the webpages starts with "@vite(['resources/css/app.css', 'resources/js/app.js'])" so im assuming VITE isnt working for some reason. Doing artisan --version on production server gives 8.30.1 so something is wrong but i dont know what.

I did view:clear, cache:clear, config:clear but no changes. I uploaded the entire project folder from local to prod, except ENV and some other stuff that should be ignored (havent uploaded public/hot) and still no assets are served. I followed the Laravel guide to upgrade from 8 to 9 and the https://github.com/laravel/vite-plugin/blob/main/UPGRADE.md#migrating-from-laravel-mix-to-vite guide to migrate to Vite.

Any help is highly appreciated, lmk if I need to show some code.

0 likes
1 reply
denabyte's avatar
denabyte
OP
Best Answer
Level 1

Update: turns out the VENDOR folder didnt upload properly to the web server, and had some trouble after that with Caching. Had to manually delete files in boostrap/cache/ but it worked in the end.

Please or to participate in this conversation.