Questions tagged [vercel]
For software-development questions about Vercel, a frontend cloud deployment platform.
vercel
138
questions
8
votes
2
answers
13k
views
Data is not being updated (always getting the same result) after the project is deployed
I created an api endpoint in my Next.js v13.2 application that fetches data from a database.
app/api/someData
This was working well until I deployed it on Vercel. I think the problem is that the ...
5
votes
6
answers
13k
views
TypeError: fetch failed during Next.js project build
I got this error during Vercel deployment:
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11457:11)
at process.processTicksAndRejections (node:internal/process/...
3
votes
1
answer
8k
views
How to properly set environment variables in Next.js app deployed to Vercel?
I am building my web app in Next.js, and I have been doing some tests. What I am doing is to push my code to GitHub and from there deploy the project on to Vercel.
I am using Google APIs dependencies ...
44
votes
17
answers
42k
views
Why does react-router not works at vercel?
I am trying to publish a serverless web to vercel.
I want to use react-router and this works good on my computer but when I deploy it It doesn't works
Can somebody help me?
(I want to do it without ...
6
votes
4
answers
3k
views
Cannot find module or type declarations while it works in local build
I keep getting this error when trying to build my app on Vercel, while it works locally without problems.
Here is the error message
Cannot find module Type error: Cannot find module './sidenav/SideNav'...
82
votes
7
answers
89k
views
Error: Image Optimization using Next.js default loader is not compatible with `next export`
I got this error when deploying Next.js to Netlify.
Error: Image Optimization using Next.js default loader is not compatible with `next export`.
Possible solutions:
6:47:15 AM: - Use `next start`, ...
58
votes
9
answers
83k
views
/tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory Vercel
when I try to access my API uploaded on vercel server, I'm getting this error.
Did anyone have the same error?
When I run it locally, it works fine.
2021-02-15T19:38:59.218Z 0109b575-a2e7-478e-aefe-...
48
votes
17
answers
86k
views
How to fix Next.js Vercel deployment module not found error
My next.js app works on my machine and was working when deployed on Vercel but now it fails when building on Vercel with the following error:
I've tried deleting node_modules and running npm install ...
20
votes
3
answers
10k
views
Next.js Static Regeneration on demand
I absolutely love Next.js's Incremental Static Regenration.
However, I'm looking for a way to force static pages regeneration on demand. Ideally via a command that I can trigger with an API call when ...
7
votes
4
answers
5k
views
Nextjs build failing because of jsonwebtoken in _middleware.ts
Would love some help on a Vercel deployment. I created a _middleware.ts file that checks a JWT that a user has in their cookie.
import { NextResponse } from 'next/server'
import type { NextRequest } ...
7
votes
8
answers
23k
views
POST multipart/form-data to Serverless Next.js API (running on Vercel / Now.sh)
I'm using a Vercel Serverless function to handle a file upload to Digital Ocean Spaces (identical API to AWS S3). However, I am running into issues handling multipart/form-data in the request handler.
...
0
votes
1
answer
1k
views
How to url-rewrite based on host in Next.js?
When Facebook scraper send request, I would return an AWS S3 image. How can I filter request and'rewrite' to AWS S3? I tried this in next.config.js:
async rewrites() {
return [
{
...
40
votes
10
answers
56k
views
NextJS deployed to Vercel: 404 page not found
I have a NextJS app without an integrated api that I want to deploy to Vercel. It works fine when I run it locally yarn run dev and I can also build it yarn run build without any errors. When I deploy ...
36
votes
7
answers
34k
views
Failed to load config "next/babel" to extend from eslintrc.json
When I'm trying to build the Next.Js app then the below error is coming with a successful build. This error is showing when I deploy the app in Vercel.
error - ESLint: Failed to load config "next/...
27
votes
11
answers
39k
views
Getting a 504/502 error on api requests in Nextjs deployed on Vercel
I have developed an application in Next.js. For the backend I have used the api endpoints configured in Nextjs which rest inside pages/api. The api end points quite often return 502(Gateway timeout ...