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
1 answer

Nextjs Real-time data: Should I use serverless with a separate websocket server or a normal Expressjs approach?

I've been using NextJs on Vercel for a while now because of its amazing development experience and performance but I didn't need to use real-time data with WebSockets in any of my applications until now. At the moment, however, I'm working on a new…
tavin-dev
  • 321
  • 3
  • 10
4
votes
1 answer

The engine "node" is incompatible with this module. Expected version ">=16.0.0". Got "14.18.3" (while deploying to vercel)

i was trying to deploy my next.js project to vercel but got the following error. error datastore-pubsub@2.0.0: The engine "node" is incompatible with this module. Expected version ">=16.0.0". Got "14.18.3" error Found incompatible module. I tried…
Xylan
  • 142
  • 2
  • 13
4
votes
2 answers

Failed to load resource: the server responded with a status of 500. Deployed react app with vercel

Hello I have error on deployed version of max app. App is deployed with vercel and when I click login in button in application I receive this error "Server error There is a problem with the server configuration. Check the server logs for more…
ProgrAMmeR
  • 41
  • 1
  • 3
4
votes
0 answers

Vercel configuration breaks Nextjs v12 hot reloading

I'm using Vercel platform to develop a NodeJS app with two separate folders - frontend (NextJS v12 app) and backend (custom NodeJS with Express). I've set up a minimal example, but after upgrading to NextJS v12, hot reloading stopped working. I've…
user3696212
  • 3,381
  • 5
  • 18
  • 31
4
votes
0 answers

Deploy React App and Express API on Vercel

I want to deploy a project that includes a React App as frontend (client/) and an Express API backend (api/) on vercel. I'm able to deploy the api but how can I deploy also the client? My project structure: -api/ -package.json …
Berliner95
  • 63
  • 1
  • 5
4
votes
1 answer

Firebase Backend custom domain for NextJS App Hosted on Vercel

So I've made a NextJS App and am using firebase for authentication and firestore. I've bought a domain from GoDaddy and am currently hosting it on Vercel. Everything is working as intended except that I cannot add a custom domain for firebase (when…
Shivam Raj
  • 41
  • 3
4
votes
4 answers

next-i18next is not working with serversideprops in dynamic pages after deploying on vercel

I'm using next-i18next module for multilingual support. I have some static pages and dynamic pages as well. both working fine on local. I deployed all static pages on vercel, all worked fine on vercel. But dynamic page is not working on vercel. it…
Prashant Patil
  • 2,463
  • 1
  • 15
  • 33
4
votes
1 answer

Vercel - `ZLIB_1.2.9' not found

I am trying to use canvas in a server less function on Vercel, but am running into an error I don't know how to get around: Error: /lib64/libz.so.1: version ZLIB_1.2.9' not found (required by…
keegan3d
  • 10,357
  • 9
  • 53
  • 77
4
votes
3 answers

Swagger UI & Vercel: Unexpected token < in JSON at position 1

Code Full codebase & folder structure can be seen in GitHub Here is the Swagger related route (had to make it a standalone server) // api/v1.ts import express = require("express"); import swaggerJSDoc = require("swagger-jsdoc"); import swaggerUi =…
lbragile
  • 7,549
  • 3
  • 27
  • 64
4
votes
1 answer

Rewrites not working on Vercel (in production) NextJS

I have been trying to get Rewrites working in NextJS for my API Paths. It was to avoid CORS issues. I followed the solution from: NextJs CORS issue. It is working on localhost but does not work in a production environment (I was deploying on Vercel…
Y M
  • 2,105
  • 1
  • 22
  • 44
4
votes
0 answers

How to add a custom response header to 404 and 500 page in Next.js

I want to add a custom response header to my 404 and 500 pages for Next.js app. I use a custom 404 page (as described here) and the default 500 page. I tried adding custom headers as described here, but that doesn't seem to work. Below is the…
amit_saxena
  • 7,450
  • 5
  • 49
  • 64
4
votes
1 answer

How come when I use getStaticPaths in production on my local server the pages load instantly but deployed on Vercel they don't?

Hi I'm using NextJs and I am having an issue that when my app is hosted on my local server the pages that are pre loaded with getStaticProps are loading in a few ms but when hosted on Vercel it is taking 300ms to load. Does anyone have any…
lewisr
  • 51
  • 2
4
votes
1 answer

NextJS API | App works in deploy and development mode but it doesn't when I run next build | ECONNREFUSED

Describe the bug I have built an application with NextJS that has an internal API and I use the getStaticProps methods to query the API. You can find the deployed app here: https://tailor-challenge.vercel.app/ And also the github repository here:…
Silinde87
  • 41
  • 1
  • 2
4
votes
2 answers

Flutter project deployment on vercel

I've deployed flutter project on vercel from github, but after deployment it shows: 404: NOT_FOUND Code: NOT_FOUND. Framework presets: Others Build log: 15:28:18.542 Cloning github.com/Usman167/UPKeepApp-FluxStore- (Branch: master, Commit:…
Usman Sahi
  • 41
  • 1
  • 2
4
votes
2 answers

How to create Web Worker in a SvelteKit app on Vercel?

I've created a SvelteKit webapp that works great on my desktop in my local environment. I launch the browser/webserver with: npm run dev -- --open Now I've just deployed to Vercel. Everything works great, except the JavaScript command I use to…
at.
  • 50,922
  • 104
  • 292
  • 461