【发布时间】:2022-12-27 14:41:58
【问题描述】:
I built a website on NextJS and deployed it on vercel. On the local environment at localhost:3000, it shows the background image but on vercel it does NOT show the background image.
Below are screenshots
On Vercel :
On Local :
I am setting the background image with the tailwindCSS where I defined the images in tailwind.config.js file and using them in different components. But that is not the issue as it is working fine in local envirenment.
I don't know what is the reason that why it is behaving differently.
Project GitHub Link : https://github.com/mohitm15/Weather-Lytics
【问题讨论】:
-
While providing a link to the code is fine, your question should be self-contained and preferably not rely on external resources to be answered. Please add the relevant code to the question.
标签: reactjs deployment next.js background vercel