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

ht3aa's avatar
Level 3

assets don't load with livewire+tailwindcss

all asset is loading on current device where the app is served. but when I am trying to access the app from another device only html is served. no style or anything. I set up everything from ASSET_URL env. I tried to make it https with URL::forceScheme('https'); and still nothing. I build it " npm run build" and still nothing. all these in livewire components. I am using filament for admin page and it works fine. it served it assets fine with tailwind.

thank you for helping

0 likes
2 replies
Snapey's avatar

check for errored files in your browser netwrk tab.

Most likely issue, not setting the document root as the public folder

ht3aa's avatar
Level 3

@Snapey these are the errors

Failed to load resource: net::ERR_CONNECTION_REFUSED app.css:1

Failed to load resource: net::ERR_CONNECTION_REFUSED echo.js:1

Failed to load resource: net::ERR_CONNECTION_REFUSED home.js:1

Request URL: ://[::1]:5173/@vite/client Referrer Policy: strict-origin-when-cross-origin

this is from https using ngrok

Please or to participate in this conversation.