Hi Newbie here. Just wanna share something.
so i got used to using the Old Laravel before Vite came in. when i downloaded the new Laravel (9 and 10) it had given me problems after i deployed it to my server. Everything seemed fine on my Local Environment but errors on the server.
i pull my project from github and after a lot of debugging and research, i found there are important files that vite uses that get ignored when you commit and push to git hub.
the Files in (public/build) which are (Manifest.json) and the ones found in "/assets" (app-[hash].css & app-[hash].js]).
Just commit and push these files to git and everything will be Ok
The solution to this problem is to ensure that the necessary files are included in the Git repository and pushed to the server. Specifically, the files in the "public/build" directory (Manifest.json, app-[hash].css, and app-[hash].js) and the files in the "/assets" directory (app-[hash].css and app-[hash].js) need to be included in the repository.
To include these files in the repository, run the following commands in the terminal:
git add public/build/*
git add assets/*
git commit -m "Add necessary files for Tailwind CSS to work on server"
git push
This will add the necessary files to the repository and push them to the server, allowing Tailwind CSS to work properly.