3,406 questions
-6
votes
0
answers
32
views
I'm trying to understand how Turborepo integrates so efficiently with Vercel and why it is considered the recommended setup for modern monorepos [closed]
I'm building a SaaS platform using:
Next.js (App Router)
Turborepo for managing multiple apps + shared packages
Vercel for deployment
I want to understand how Turborepo handles:
Remote caching ...
1
vote
0
answers
21
views
Bun + Express on Vercel: How to Modularize Routes from Separate Files?
I'm deploying a Bun + Express application to Vercel. Locally, my Express app works perfectly with routes defined in separate files and imported into index.ts. However, on Vercel, the deployment ...
0
votes
0
answers
14
views
MERN Project Backend Not Loading Data on Vercel Deployment
I’m trying to deploy my full MERN project (frontend + backend) on Vercel. The frontend works fine, but the backend is not loading data. I keep getting this error in the console:
GET https://cutomer-...
-1
votes
0
answers
57
views
Why my prisma seed.ts does not work for path "../app/generated/prisma"
import{ PrismaClient }from '../app/generated/prisma'
I see red underline for this line in my vs code and also having a error "module can be found" something like that in my terminal.
But it ...
Best practices
0
votes
0
replies
42
views
Why does my Next.js app’s performance drop significantly when using dynamic routes with large datasets and server-side rendering (SSR)?
I'm working on a Next.js 14 app with several dynamic routes (e.g., /product/[id]) that render product details from a large dataset (around 50k+ records) stored in PostgreSQL.
I'm using ...
0
votes
0
answers
30
views
How to fix DrizzleQueryError when deploying Payload Website Starter one click deployment?
I am getting this below error when using one click vercel payload deployment.
https://vercel.com/templates/next.js/payload-website-starter
All the connection strings are added properly(automatically).
...
0
votes
0
answers
36
views
Monorepo deployment issue on Vercel – shared package @repo/ui not resolved
I'm trying to deploy our homepage repo (apps/nd-web-home) to Vercel.
Locally: the build works fine.
On Vercel: the deploy fails with Module not found: Can't resolve '@repo/ui'.
Our setup:
/packages/...
-2
votes
2
answers
87
views
Uncaught ReferenceError: require is not defined, in my Vercel app
Problem
I have a React app using Leaflet.js (v.1.9.0) and I host it in Vercel. Building works OK, but when visiting my app online logs this message in console:
Uncaught ReferenceError: require is not ...
0
votes
1
answer
94
views
How to fix 404 error when deploying Node.js backend on Vercel with Vue frontend on Netlify?
I have split my Vue.js project into two parts:
The frontend is a Vue app, which I successfully deployed to Netlify, and it works fine.
The backend is a simple Node.js + Express server that I want to ...
1
vote
1
answer
274
views
FastAPI route works locally with `/` but not on Vercel (and vice versa)
I have a FastAPI + Next.js project deployed on Vercel.
Locally everything works, but on Vercel some routes break depending on whether I use a trailing slash in the route definition.
For example, in my ...
0
votes
0
answers
44
views
Vercel deployment of Next.js app with custom 'rewrites' in vercel.json results in 404 errors on all routes
I have a monorepo project with a Flask backend (deployed separately) and a Next.js frontend located in a frontend directory. I'm trying to deploy only the frontend on Vercel.
Project Structure:
text
...
0
votes
0
answers
41
views
How to specify path to custom python modules when deploying on Vercel
when deploying the project on Vercel, an error occurs:
File "/var/task/api/main.py", line 2, in <module>
from config import app, db
ModuleNotFoundError: No module named 'config'
i ...
0
votes
1
answer
220
views
Getting Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again
This is the error it's giving when I run npm run build:
ml@M-----MacBook-Air skyfold.dev % npm run build
> [email protected] build
> next build
▲ Next.js 15.4.6
- Environments: .env
...
0
votes
0
answers
23
views
Vercel deployment fails due to typecheck for Chakra-UI custom recipe variant
The problem I am running into is that the local typecheck is OK, but the Vercel deployment typecheck is failing:
"@chakra-ui/react": "^3.25.0",
"@emotion/react": "^...
0
votes
0
answers
50
views
Nextjs 15 app, all dynamic routes return 404 when deployed
I have a nextjs (15.3.1) application entirely based on dynamic routes, this is the output when I build it:
Route (app) Size First Load JS
┌ ○ / ...
0
votes
1
answer
108
views
Cannot see my API call on frontend console?
fetch('https://localhost:7077/api/test/users')
.then(res => res.json())
.then(data => console.log('Users:', data))
.catch(err => console.error('Error:', err));
Error:
Promise {<...
0
votes
0
answers
48
views
Session token/headers not detected in production (Vercel)
When deployed, it fails
Cookie validation
Bypass Vercel firewall rules for API routes
even though cookie + header is seen from the browser
middleware.ts
import { NextResponse } from 'next/server';
...
0
votes
0
answers
43
views
404 for NEXT JS dynamic routes on Vercel production deployment
I am stuck on a frustrating behavior on my next js app which I recently deployed to vercel production environment. Basically all pages are loading except my SSR page that uses dynamic routes.
Also ...
0
votes
0
answers
69
views
if i wrote"npm run build" command in package.json, what should i write in build command in project setting of vercel's framework setting?
i am using express + typescript, and deploying with vercel.
"scripts": {
"start": "nodemon --exec npx tsx src/app.ts",
"build": "tsc && tsc-...
0
votes
0
answers
77
views
Vercel Deployment: White Screen with vercel.json, but 404 on Routes Without It
I'm having a persistent issue deploying a Vite + React (TypeScript) application with a Node.js (Express) backend to Vercel, and I'm caught in a frustrating loop.
The Tech Stack:
Frontend: Vite, React,...
1
vote
1
answer
280
views
How do I configure Vercel to treat a compiled index.js as a serverless function instead of a static file?
I'm working on a Vercel-hosted monorepo with the following setup:
index.ts (using the Hono framework with hono/vercel) is compiled using tsup into dist/functions/index.js
Static assets are built ...
0
votes
1
answer
73
views
Unresolvable Silent Crash with handleAuth on Vercel (Next.js App Router)
I am facing a challenging debugging journey and its solution for an issue with @auth0/nextjs-auth0 on Vercel with the Next.js App Router.
Core Framework & Auth Libraries:
Next.js: ^14.2.15
React: ...
0
votes
0
answers
72
views
How to only trigger a redeploy when there are changes in a specific folder on Vercel
I'm using Vercel to build a static web page for one of my coding projects. It's linked up to my GitHub repo, so it's automatically rebuilding every time I push any changes to my repo. Since my project ...
0
votes
2
answers
105
views
Vercel build fails with TypeScript error 'params' is a Promise on Next.js 15 Server Component
I am building a website using Next.js 15.3.3, React 19, and Sanity.io for content. Everything works perfectly in my local development environment (next dev).
However, when I deploy to Vercel, the ...
0
votes
0
answers
66
views
Vercel / Angular - Getprerender params
I'm trying to deploy my Angular project in Vercel and I keep getting this error message:
✘ [ERROR] The 'quote/:categoryId' route uses prerendering and includes parameters, but 'getPrerenderParams' is ...