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
16
votes
7 answers

Redirect in Next.js from uppercase to lowercase URL

I need to redirect visitors from /Contact to /contact. When I am doing it as described in the docs I get an infinite redirect loop. This is what I tried: // next.config.js async redirects() { return [ { source: '/Contact', …
Yuval Levy
  • 2,397
  • 10
  • 44
  • 73
15
votes
5 answers

Deploying Strapi in Vercel

I have a nextjs app deployed to Vercel, and am trying to deploy the Strapi cms that manages it to Vercel too, as it would be easier to maintain both on the same service. The Strapi repo builds fine, and everything is green, but I either see a 404 if…
user1003572
  • 151
  • 1
  • 1
  • 4
14
votes
3 answers

Vercel Serverless Function has timed out error

I have a Nuxt.js server side website deployed on Vercel. I've noticed that, on some occasions, I get a 504: GATEWAY_TIMEOUT error, with the code FUNCTION_INVOCATION_TIMEOUT and the message "This Serverless Function has timed out". Why am I seeing…
Opeyemi Odedeyi
  • 766
  • 1
  • 10
  • 38
14
votes
7 answers

Nodemailer in vercel not sending email in production

I'm using Nodemailer to send emails in my serverless Next.js project, deployed in Vercel, which works perfectly in development mode. But I'm having problems in production. No error returned, everything works the same way as is development mode,…
Daniel Ioanitescu
  • 187
  • 1
  • 1
  • 10
14
votes
1 answer

Vercel: Running a Node script after deployment?

Is there a post-deploy hook or any other way to run a Node script after deployment on Vercel?
bArmageddon
  • 8,088
  • 6
  • 22
  • 40
14
votes
4 answers

How do I put a nextjs app in maintenance mode (using Vercel)

I've just released my nextjs app to production using Vercel. I'm loving the whole experience except for one tiny part: I would have loved to be able to put my app in maintenance mode, but this option does not seem available on Vercel. My question…
Marc Perrin-Pelletier
  • 12,696
  • 8
  • 28
  • 36
13
votes
0 answers

Why Vercel function log does not show console.log?

I see this for server method generatePostAnimation basically no log lines. I have many console.log like this: console.log('Képek betöltve') What do I miss? https://vercel.com/support/articles/where-are-vercel-logs
János
  • 32,867
  • 38
  • 193
  • 353
13
votes
3 answers

Next.js | Is there any way to render an .xml file?

I'm trying to render an XML file when pointing to www.example.com/sitemap.xml. Since the project was developed using Next.js, the routing works with the js files stored in the pages directory: example.com/help -> help.js example.com/info ->…
CoronelV
  • 357
  • 1
  • 2
  • 14
13
votes
5 answers

nextJS build fails on Vercel because of Webpack errors

Im trying to deploy to Vercel I've done it before with other projects but in this case, the build is failing, it mentions that it doesn't find Footer component, the build works perfectly on local machine. 11:55:14.850 Cloning completed in…
ricardoNava
  • 685
  • 1
  • 7
  • 26
13
votes
7 answers

Zeit (Vercel) Now serverless authenticated requests failing because of CORS

I'm not able to correctly handle CORS issues when doing either PATCH/POST/PUT requests from the browser sending an Authorization header with a Bearer token (this works correctly outside of the browser and for GET requests) in Zeit Now…
GMaiolo
  • 4,207
  • 1
  • 21
  • 37
12
votes
3 answers

How can I stop Vercel preview deployments from appearing on pull requests?

I use Vercel to deploy a Next.js app and I use Vercel for GitHub for CI/CD. Vercel automatically deploys code pushed to my master branch to production, and I would like to keep this functionality. However, Vercel also creates preview deployments for…
Manav Bokinala
  • 177
  • 1
  • 2
  • 9
12
votes
5 answers

how to deploy custom github branch on vercel

Is there a way to select a custom branch to deploy ? I do not seem to be able to select a branch and it takes the default main branch thanks in advance
Maxime Ghéraille
  • 1,465
  • 3
  • 16
  • 31
12
votes
1 answer

Nextjs import external components from parent directory

I have external directory common and I would like to import react components from that directory into web-static. In web-static I am using nextjs. Currently I having this error: Module not found: Can't resolve 'react' in…
kraizybone
  • 313
  • 1
  • 3
  • 12
11
votes
1 answer

Remix Hydration failed: UI on server and client do not match

It's fine locally (known warning and CSS renders well), but on Vercel my Remix app gets this error: Hydration failed because the initial UI does not match what was rendered on the server. Business logic runs fine but CSS is utterly broken. Update…
nusantara
  • 1,109
  • 1
  • 15
  • 38
11
votes
3 answers

UnhandledSchemeError: What is this node:buffer error and how do I solve it?

Pasted below is a node:buffer error that I've received when using a link to a local route in nextjs. Anyone know how to solve this? I see: https://github.com/vercel/next.js/discussions/33982 thanks! node:buffer Module build failed:…
421
  • 203
  • 1
  • 5
  • 13