Reputation: 1
I developed a website using Next.js, Tailwind CSS and Blockchain, and everything works perfectly on localhost. However, after deploying the site on Vercel, the layout is completely misaligned, and images are not displaying as expected.
In vercel deployment: enter image description here
Here’s what I’ve tried so far: Checked for missing files in the deployment. Verified all relative and absolute paths for images. Ensured CSS files are being applied.
It would be really great if the layout and alignments are the same as the localhost.
Link to repo: https://github.com/harisankarrnair/CrowdMantle
Deployment link: https://crowd-mantle.vercel.app/
Upvotes: -1
Views: 49
Reputation: 24263
One of your content
file globs in the client
folder has ./components/**/*.{js,ts,jsx,tsx}
. However, this folder is uppercase on the first letter, Components
. This could cause the difference perhaps if your localhost OS is case-insensitive while Vercel could be case sensitive.
Thus, consider adjusting the content
entry to match the casing of the folder:
"./Components/**/*.{js,ts,jsx,tsx}",
Upvotes: 1