3,405 questions
0
votes
0
answers
30
views
Next.js App Router build fails locally with Cannot read properties of undefined (reading 'query') but works on Vercel
I'm working on a Next.js 15 App Router project with a POST API route located at app/api/users/webhook/route.ts. In production (on Vercel), the build and API route work perfectly. But locally, when I ...
1
vote
1
answer
193
views
Image component not working in my app - Receiving 400 bad request
I'm using Next.js and running into an issue where none of my images are loading. I'm using the component from next/image, and every image gives this error in the console:
Failed to load resource: ...
0
votes
1
answer
87
views
Types of property 'params' are incompatible
I'm trying to build a website that has a blog, but whenever I try to deploy on Vercel, it gives me the error "Types of property 'params' are incompatible." What can i do with this error
type ...
0
votes
0
answers
55
views
How to build multiple Vercel preview deployments per pull request with different environment variables?
I'm using Vercel for frontend hosting, and I need to trigger two separate preview deployments per pull request, each pointing to a different backend environment.
We run end-to-end (E2E) tests (with ...
1
vote
2
answers
156
views
Error occurred prerendering page TypeError: Cannot read properties of null
I'm trying to deploy a blog written with Next.js v15.3.3 with Vercel but I keep getting the same error:
Error occurred prerendering page "/post/1". Read more: https://nextjs.org/docs/...
-1
votes
1
answer
90
views
Unable to receive POST requests during Express.js/Vercel development, and unable to receive any HTTP requests after Express.js deployment on vercel
I'm trying to set up a serverless Express.js chatbot receiveing POST requests from Twilio and responding via a webhook
Problem:
When running npm run dev or vercel dev, POST requests my webhook on ...
0
votes
0
answers
37
views
Adding custom domains to a next.js platform project
I am trying to create a platform using next.js and i'm at the point of allowing users to add custom domains using vercel's SDK but I'm not sure how I am suppose to allow users to verfify their domain. ...
-2
votes
1
answer
76
views
Why I can't call my API on my application?
I'm trying to consume my own Node.js/Express API from a frontend application, but I'm getting a CORS error that I couldn't solve.
Context:
Backend: Node.js + Express
Deployment: Vercel (@vercel/node)
...
0
votes
1
answer
219
views
Dynamic API routes not working with vercel deployment
In my Nextjs application, I am using pages router. I have created an API route as such
/pages/api/v1/wallet/expenses/[id]/index.ts
I have added my API logic in this
When I am building my application ...
1
vote
1
answer
62
views
vercel not redirecting to previous page
user redirected to login page after a trying to access a protected page. I am storing the protected page url in search params and after login redirect to that page. (my approach works on localhost ...
0
votes
0
answers
33
views
Vercel Next App Router Playground relative path error on Windows
I have cloned the Vercel NextJS app router playground repo at https://github.com/vercel/next-app-router-playground to my Windows machine.
Then I run
pnpm install
pnpm dev
The app homepage works fine, ...
0
votes
0
answers
110
views
Vercel and yarn v4 - using .env vars in yarnrc file
I’m using yarn v4 workspaces and need to be able to add an NPM token to access a private package.
Locally this works fine as I can either define a .env.yarn file or add it to my .env file and use the ...
0
votes
1
answer
154
views
Typescript build issue in Vercel
When I launch my app on Vercel, I am facing this issue consistently for the last day with fail --
It looks like you're trying to use TypeScript but do not have the required package(s) installed.
...
0
votes
0
answers
51
views
Vercel Build Failing with Prisma + Supabase + Next.js API Routes (CI=false workaround, still errors)
I'm deploying a backend-only Next.js project to Vercel that uses:
Next.js API routes (pages/api)
Prisma ORM (connected to Supabase Postgres)
TypeScript (v5+)
.env file with DATABASE_URL
Some logic ...
0
votes
0
answers
72
views
Stripe API <> Vercel gRPC or OpenSSL Compatiability Issue
Running a Next.js application on Vercel. Vercel is not playing nicely with Stripe API. Since Stripe API is so popularly used with payments, not sure how I'm the only one encountering this issue? ...
0
votes
0
answers
67
views
Astro component missing styles when deployed to Vercel
I'm building a website using Astro and deploying it to Vercel. One of my components, Footer.astro, is missing all of its styles only in production. It works fine locally. Also all other components ...
4
votes
3
answers
3k
views
Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x" error on deployment
Prisma works locally and I can invoke my server actions without any problem. However, when I deploy, I get
`Unhandled Rejection: Error [PrismaClientInitializationError]: Prisma Client could not ...
-1
votes
1
answer
172
views
turn-off error obfuscation in production for server actions on Vercel
Locally everything is fine, when deployed to Vercel, backend runtime errors are trapped by Vercel/Next.js and they are automatically obfuscated, which is nice, but I want to turn it off.
unfortunately ...
1
vote
3
answers
381
views
Next.js 15 build fails on Vercel: "Please install @types/node" — even though project is not using TypeScript
As the title says, I'm trying to build a Next.js 15 project on Vercel, and this error is occurring: Error: Command "npm install && npx prisma generate && npm run build" ...
0
votes
1
answer
72
views
Getting "NEXTAUTH_SECRET is not set in environment variables" during Vercel deployment, even though it is set correctly
When I run npm run build locally, I don't get any errors and the build completes successfully. However, when I try to deploy the project on Vercel, I get the following error:
Error: NEXTAUTH_SECRET is ...
0
votes
0
answers
60
views
Access token from Vercel Integration code exchange invalidates prematurely
I am working on building a Vercel integration but I'm running into some problems:
When connecting an account to the integration, there is a popup window from the callback. This should exchange the ...
0
votes
0
answers
134
views
Infinite redirect loop when proxying on Vercel to external WordPress server due to trailing‑slash normalization
I have a Next.js application deployed on Vercel and a WordPress blog running on an external server (nginx/Apache). I’d like all requests to /blog/* on my Next.js app to be proxied or redirected to the ...
0
votes
1
answer
1k
views
TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')
I'm a relatively new dev and I am working through a tutorial on how to build a fullstack demo app on Vercel using nextjs with Prisma and Postgres (link: https://vercel.com/guides/nextjs-prisma-...
1
vote
2
answers
102
views
Date returns the same value across multiple requests when deployed to Vercel (Next.js Route Handler)
I'm using a Next.js App Router API route (app/api/notify/route.ts) to check the current time (in Brazil timezone) and trigger notifications when a scheduled time is reached.
This works locally, but ...
1
vote
1
answer
466
views
How do I create sub folders/directories with PayloadCMS media uploads and the Vercel blob storage?
Here is my current media collection config:
import type { CollectionConfig } from "payload";
export const Media: CollectionConfig = {
slug: "media",
...
access: {
read: () ...