I am trying to deploy my nextjs app on vercel. I have uploaded the repository and the necessary env variables. However whenever I attempt to deploy I have the error below:
Error fetching data: B [Error]: Dynamic server usage: no-store fetch procura-app-v1-1-1hkl.vercel.app/api/suppliers /dashboard/home/overview
at /vercel/path0/.next/server/chunks/8948.js:2:8558
at /vercel/path0/.next/server/chunks/8948.js:2:15891
at a.with (/vercel/path0/.next/server/chunks/8948.js:1:8885)
at c.with (/vercel/path0/.next/server/chunks/8948.js:1:3085)
at c.startActiveSpan (/vercel/path0/.next/server/chunks/8948.js:1:18140)
at a.startActiveSpan (/vercel/path0/.next/server/chunks/8948.js:1:18674)
at /vercel/path0/.next/server/chunks/8948.js:2:15424
at a.with (/vercel/path0/.next/server/chunks/8948.js:1:8885)
at c.with (/vercel/path0/.next/server/chunks/8948.js:1:3085)
I don’t really know why this is happening but I have a feeling it may be because of the environment variables.
Deployment URL or Custom Domain: https://procura-app-v1-1-1hkl-git-main-procuras-projects-4a411bda.vercel.app/
Environment (local, preview, production): NEXT_PUBLIC_WEBSITE_URL, DATABASE_URL
Project Framework: Nextjs, Prisma, React, MongoDB
Build Settings:
Framework Preset:
Build Command (if not default):
Output Directory (if not default):
Install Command (if not default):
Node/Runtime Version:
Package Manager: npm
Relevant Packages: