KiwiNFLFan555's avatar

Deploying Livewire project on Vercel - JS/CSS not being served

I’m trying to deploy a Laravel Livewire app to Vercel. I configured the app using this guide and managed to get the app pushed to Vercel (haven’t configured the DB yet though).

I can access the web app on the URL Vercel gave me, but the CSS and JavaScript are not downloading, although the HTML is. This means there is no styling on the page, but more importantly, the buttons and other JavaScript features don’t work, meaning the app is useless.

This is the console error:

Blocked loading mixed active content “htttps://my-cool-vercel-app.vercel.app/build/assets/app-D_9mj7XC.css”

Blocked loading mixed active content “htttps://my-cool-vercel-app.vercel.app/build/assets/app-z-Rg4TxU.js”

This is my vercel.json file:

0 likes
3 replies
AJ-King-hash's avatar

Can Someone Please answer this conversation? i need also the full steps of how to deploy livewire project on vercel

JussiMannisto's avatar

The OP got this error because their app URL is wrong. The protocol part is htttps with an extra t. It's not a secure URL, so the browser refuses to load the resources.

But I'm guessing that doesn't help you because your post has nothing to do with this thread.

martinbean's avatar

@aj-king-hash

  1. Don’t hijack other people’s threads. If you have a question, create your own post.
  2. Vercel is not at all suitable for deploying full-stack applications using Laravel and Livewire.

Please or to participate in this conversation.