3 days ago
Hi everyone, I'm trying to deploy an application made with Laravel12 and Livewire using new starters packs so on my local when I deploy I used to do php artisan serve and open other terminal and run npm run dev and with this all is setup
currently my NIXPACKS looks like this composer install && npm install && npm run build && php artisan migrate --force && php artisan optimize && php artisan config:cache && php artisan route:cache && php artisan view:cache && chmod 777 -R storage/ && chmod 777 -R bootstrap/cache && php artisan storage:link
my applications is running and I do not have any error but my my projects looks like the css and JS are not loading propperly
Attachments
2 Replies
3 days ago
i see you have a hard-coded url for the css starts http:// , i havent really worked with laravel but that doesn't look right to me, but i am sure if you remove that you will get rid of those errors
the fact that app appears unstyled is because the generated assets were not created during npm run build
i would also recommend switching to a Dockerfile
3 days ago
I fix it forcing laravel
APP_SECURE="true"
Status changed to Open jake • 3 days ago
Status changed to Solved jake • 3 days ago