robcollier's avatar

Tailwind not compiled when using sail share

I am able to share my project using sail share but when visiting the temporary url it gives, everything is all messed up due to tailwind not being compiled. While I'm working on the site locally I have sail npm run watch running but is there anything else I need to do before sharing?

0 likes
4 replies
helgesverre's avatar

Are you using the asset() helper in your blade template?

1 like
robcollier's avatar

For images, yes I am.

Basically what is happening is all the Tailwind aren't being compiled. As if I added them and didnt run npm mix.

MohamedTammam's avatar

Please show us how you are importing sail in the template.

1 like
robcollier's avatar

I figured it out.

I hadn't added * to my trusted proxies in the TrustedProxies.php middleware.

I hand't thought of this until I re-read the documentation, as I hadn't associated the Tailwind classes not being compiled with a route/url generation helper error.

Thank you for responses and helping steer me in the right direction

Please or to participate in this conversation.