7 questions
0
votes
0
answers
83
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,...
0
votes
0
answers
137
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
102
views
Images won't load in Next.js 14.0.2 app after deploying to Vercel
I am learning nextjs at https://nextjs.org/learn/dashboard-app
and I reached the end, but now that I have deployed my application, I see that the images are not loading, but they were loading while on ...
3
votes
0
answers
787
views
Vercel middleware crash - __dirname is not defined
Has anybody ever experienced this issue while deploying a nextjs app on vercel?
The deployment is successful but causes this runtime error
ReferenceError: __dirname is not defined
at (node_modules/...
0
votes
1
answer
1k
views
Nextjs middleware is not able to read cookies, when deployed on vercel
I deployed the nextjs application on vercel, and nodejs application on render.
I use middleware.js in nextjs to check if the user is authenticated or not. If the cookie is present, he moves ahead, ...
1
vote
0
answers
236
views
Vercel "/" route returns server source code
I am hosting a REST API in Vercel (serverless). The root directry looks like this:
+ myapp_root_dir
|-+ api
| |-+ public
| | |-- index.html
| | |-- layout.css
| | |-- main.js
| |-- index.js
|-- vercel....
0
votes
1
answer
1k
views
How to disable Vercel Middleware in specific environment without invoking the middleware?
Vercel provides IP / user access control features, but they do not work for my use case. Therefore, I am currently using middleware on my NextJS site hosted on Vercel solely to block unauthorized ...