Questions tagged [vercel]

Vercel is the platform for frontend developers. Vercel has zero-configuration support for 35+ frontend frameworks and integrates with your headless content, commerce, or database of choice.

Vercel is the platform for frontend developers, providing the speed and reliability innovators need to create at the moment of inspiration.

They enable teams to iterate quickly and develop, preview, and ship delightful user experiences. Vercel has zero-configuration support for 35+ frontend frameworks and integrates with your headless content, commerce, or database of choice.

2631 questions
4
votes
2 answers

Is there anyway to get MongoDB to work on Vercel Edge Serverless Functions

I am experiencing long cold start times when making a new document using my API on Vercel Serverless Functions. To Speed up the request, I want to run the API on Vercel Edge Functions, but the edge runtime does not support the MongoDB official Node…
Max
  • 41
  • 3
4
votes
1 answer

Adding dependencies to the "ui" package of a Turborepo with Next.js throws Unexpected token 'export'

If you run npx degit vercel/turbo/examples/with-react-native-web with-react-native-web cd with-react-native-web yarn install To create a basic Turborepo that has a Nextjs application, a react-native mobile app with Expo and a ui package to share…
4
votes
0 answers

Access full Next.js errors in production deployment

I'm debugging a tricky issue that only occurs with a Next.js project when in production/deployed to Vercel. Minification is interfering in my ability to debug the issue since issues are reported as: Uncaught Error: Minified React error #425;…
David Chouinard
  • 6,466
  • 8
  • 43
  • 61
4
votes
0 answers

Solved: CORS issue after deploying a nest js backend api on vercel platform

I have deployed a Nest js backend api on Vercel and it kinda working because I can see the home page after deployment, and I can send a get request to fetch all users for example, But I can't send a POST request to make a login and I get this CORS…
4
votes
1 answer

Vercel not triggering new commits on Github

Vercel is not triggering new commits on Github. Hi everyone! It was fine, but Vercel deployed the commits but didn't make any changes. I thought I didn't push the changes, but I did. I don't know why it suddenly did that, but it's pretty weird. Any…
Zepvil
  • 75
  • 2
  • 6
4
votes
1 answer

Node Canvas on Vercel Serverless Function - The Serverless Function exceeds the maximum size limit of 50mb

I'm generating images on the server based on data users send to the API route I have in Next.js using the canvas package. It's working great, but I am unable to deploy the project to Vercel as the canvas dependency is too big (44.9 MB compressed…
Jarrod Watts
  • 345
  • 3
  • 13
4
votes
1 answer

Github actions on Vercel deployment with multiple environments

We have Vercel preview deployments setup for every pull request in Github. On every pull request the code gets deployed to a Vercel test / acc / prod environment which are coupled to different backends. For every pull request we want to run some…
tlolkema
  • 260
  • 1
  • 8
4
votes
1 answer

turbo/no-undeclared-env-vars not recognizing changes

I'm updating my project to use turborepo and I'm encountering a strange behavior with turbo/no-undeclared-env-vars. In the starter project I added a hello constant from the environment variables: export default function Web() { const hello =…
Thomas
  • 2,003
  • 18
  • 30
4
votes
2 answers

Bug with next-i18next and deployment on vercel (recently)

Update 2: This probably has to do with the this PR where assets have been removed as dependency. Update 1: Managed to get a reverse shell into the serverless function and it really would appear that there is no public folder anymore: Provide…
Fabian Bosler
  • 2,310
  • 2
  • 29
  • 49
4
votes
4 answers

having problem deploying express server on vercel [404 page not found]

I tried to deploy my express server on vercel to solve cors problem on my front code the problem is 404 error pops up when I enter the deployed page but it goes well when I try on localhost // vercel.json { "version": 2, "builds":…
easeurmind
  • 43
  • 1
  • 4
4
votes
5 answers

Can't deploy project on Vercel due to name error

I want to deploy on project on vercel but I keep got an error that say me the project is not valid like this message: Error: The name of a Project can only contain up to 100 alphanumeric lowercase characters and hyphens. Learn More but my name…
Ganzo
  • 198
  • 1
  • 3
  • 16
4
votes
1 answer

MongoDB Atlas connections to cluster(s) exceeded- NextJS + NextAuth

I was creating a website using NextJS and for authentication uses NextAuth. And the database is on free tier in MongoDB Atlas. I have two versions of code for database connection. One is this: /** * MongoDB Connection * * */ import…
Akhilesh B Chandran
  • 6,523
  • 7
  • 28
  • 55
4
votes
2 answers

Type error: Cannot find module 'firebase-functions' or its corresponding type declarations when deploying in Vercel

I have a nextjs and firebase app setup with functions and everything runs and builds perfectly locally. However when I build and deploy to Vercel I get the following build error in Vercel console: Type error: Cannot find module 'firebase-functions'…
cormacncheese
  • 1,251
  • 1
  • 13
  • 27
4
votes
0 answers

Vercel Automatic Branch URL not deploying

On Vercel whenever we deploy from a branch usually two preview deployment URLs are generated. Automatic unique URL site-xadvghg2z-companyname.vercel.app Automatic Branch URL site-git-hello-world-companyname.vercel.app This is composed of the…
Jonas
  • 41
  • 2
4
votes
1 answer

MissingSecret [MissingSecretError]: Please define a `secret` in production

According to the docs https://next-auth.js.org/configuration/options#secret , adding a NEXTAUTH_SECRET as an environment variable, you don't have to define this option. But in vercel production I still get, 2022-03-24T10:37:19.571Z …
Sai Krishnadas
  • 2,863
  • 9
  • 36
  • 69