I am importing Uppy styles in my component. In the local environment styles are successfully loaded from Uppy
module and <Dashboard />
component is rendered correctly. But when the site is deployed to Vercel then the CSS files are not loaded.
What am I missing? Below is my code… I am using Nextjs 12.3.1
.
import Uppy from "@uppy/core";
import { Dashboard } from "@uppy/react";
import "@uppy/core/dist/style.css";
import "@uppy/dashboard/dist/style.css";
export default function UploadPage() {
const uppy = new Uppy();
return (
<Dashboard uppy={uppy} />
)
}