Tailwindcss Does not Load on the production server
Am deploying a laravel website on a subdomain on a cpanel I do run npm run build and the css compiles but the css files to load on my prodction server when I check the console I find this
I have tried solutions on the internet but seems none is working for me at the moment
18 Replies
u run the npm build on ur server right? not on ur local machine?
i ran npm run on the localmachine
make sure the APP_URL already correct, same with domain name
using git?
just uploaded from my local
is the build folder there?
I see it there in public
or try to run the npm build direcly on ur server
with the assets
server does not have node installed
i faced the same issue, i dont have npm on my server
and i upload it using git
first time it doesntwork but i read something here
https://laraveldaily.com/post/laravel-vite-manifest-not-found-at-manifest-json
i understand that the build folder is not provided in my server
so maybe u can read the article first and make sure everything is correct
lemme know, if u still having the same issue
ok
I have everything here
But I cannot npm run build on the server
Can u show me ur app layout?
Also, can I access it online? Wanna see it fiest
http://dummy.fountainofpeace.org.ug/
thats the website
here is mine can u try it?
please make the asset_url also in https
same issue
in ur vite.config.js, try this
then ur tailwind.config.js
after that try to run the npm run build again
okay
am not using filament or livewire just am working with laravel starter blade template
it was just a sample site