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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Angular 404 error when navigating in Vercel

After I posted my project in Vercel, everything is fine when navigating through the pages, but if you reload the page not on the main "/" but on any other route, then there will be a 404 ...
krabochki's user avatar
0 votes
1 answer
32 views

Next Auth signIn function works as expected in development, fail in production on Vercel

UPDATE: Another weird behaviour identified: When I try to log in on chrome (laptop, macOS), the log in fails with a 405 and I get redirected to /login# When I try to log in from safari (either macOS ...
Bogdan Andrei's user avatar
0 votes
0 answers
7 views

Problem wish SSR Angular when deploy on Vercel

I use SSR Angular Universal and deployed my project on Vercel - https://rozetka-clone.vercel.app/ The behaviour is weird. Some routes work perfect (SSR layout is correct for them), others dont have ...
Den Rybachok's user avatar
0 votes
0 answers
24 views

Unable to start the server of node js in vercel and Forntend react app is getting display with login but after refresh it is getting 404

I have deployed a React, Node js and Mongodb code in Vercel. While i am trying to launch API endpoint then i can able to see only code which is available in index.js instead server running properly. I ...
Gopi Kumar's user avatar
0 votes
0 answers
12 views

"ERR_DLOPEN_FAILED" error when using the pkg tool

I am attempting to package my Node.js application including canvas package using the pkg tool to create an executable. However, I am running into the following error:Error: error: 126C: code: '...
bigboss's user avatar
  • 11
0 votes
0 answers
23 views

HashLocationStrategy prevents correct open redirectUrl from Supabase

I am making an application using Angular and Supabase. When uploading the application to Vercel, I ran into a problem: after reloading the page, if the user is not on the main page, a 404 error ...
krabochki's user avatar
0 votes
1 answer
19 views

Module not found when deploying on Vercel

I've created a website in NextJS. It runs fine via npm run dev and such but when building and deploying it in Vercel, I'm getting the error that it can't find the module, but it can find it just fine ...
Maxterino's user avatar
0 votes
0 answers
16 views

BullMQ worker not always triggered with Redis hosted on VercelKV

I'm quite new to job scheduling and delayed operations. I have a next.js app running on vercel. I have a messenger built into my app, so when the message is sent, I was sending email informing about a ...
adrski's user avatar
  • 11
-1 votes
0 answers
40 views

SyntaxError: Cannot use import statement outside a module Nextjs Antd [closed]

I am using version 5.11.5 of Ant Design in a Next.js project. However, when I try to build, I encounter the following error logs, and the commonly suggested solutions did not solve my problem. How can ...
Cansu Altun's user avatar
-1 votes
1 answer
56 views

Home Page working properly in localhost but throwing error after hosting on Vercel

I created a todo app using react, react-router-dom, redux, and localStorage. It is working fine in localhost, but after hosting in vercel it is showing my error page. When I go to "hostURL/...
Suman Maji's user avatar
0 votes
0 answers
13 views

After deploying my code in vercel, its showing my code instead of data

i have a problem with deploying in vercel after deploying my code (writen in fethersjs and typescript) showing code instead of data enter image description here this is how. My vercel.json conf { &...
Ozodbek_dev's user avatar
0 votes
0 answers
14 views

Issue with deploying a flask app on Vercel

Does anyone have any experience with deploying flask apps on Vercel? I have a Flask app that's on a gitHub repository. Currently, it's deployed on render.com (on a free tier) and works fine, but has a ...
Dan M's user avatar
  • 1
0 votes
0 answers
10 views

Configuring Angular project on Vercel for multi environment builds?

I'm working on an Angular project (v17 with SSR) deployed on Vercel, and I have two environments, prod and dev. I'm trying to configure my project so that the variables defined in environment.dev.ts ...
Tim's user avatar
  • 190
1 vote
2 answers
28 views

Tailwind setup not working on vercel-tuborepo with react

I was trying to setup tailwind css with my react monorepo created using vercel-turborepo I simply used the example from vercel to setup monorepo with create-react-app then i tried copying the same ...
8ANiMER8's user avatar
-2 votes
0 answers
18 views

Error: Command "yarn run build" exited with 1 [closed]

error deployment on vercel, i have try to upgrade webpack and others complete npm run build in vscode, please help me to fixing this error code while deploying using vercel cos when i tried to run on ...
Haqila Nouvadila's user avatar
0 votes
1 answer
15 views

Error 404 in Vercel after deploy backend aplication using express and mongodb

After realize my deploy in vercel i have this error: 404: NOT_FOUND Code: NOT_FOUND Nothing is wrong if my logs in vercel, and im alreary put the versel.json config as a documentation tell. I've also ...
Victor Schmoegel Oliveira's user avatar
0 votes
0 answers
11 views

Can't get inline images to work in Nextra static site

I'm trying to get images to appear inside a sentence in Nextra - such as: 'To close the window, click the Close [ICON]. I can achieve this result inside my IDE's preview window, but not inside my app. ...
Reddybrekkers's user avatar
0 votes
0 answers
30 views

Next.js vercel puppeteer 500

I'm using puppeteer to take screenshots of websites on the /api side of next.js: "use server" import { NextResponse } from 'next/server'; import puppeteer from 'puppeteer'; const chromium = ...
Codeitfast's user avatar
-1 votes
0 answers
49 views

Client side request is blocked by CORS policy after deploying server in vercel

I have deployed my node js server side in vercel, added all required configurations like vercel.json, added environment variables in deployed project. After replacing the localhost URL with the vercel ...
Tasbiha Hussain's user avatar
0 votes
1 answer
29 views

Session Authentication in Next.js web app

I am currently imlementing the NextAuth authentication in a React.js web application I am working on. In an effort to allow the user's authentication accross the entire app, I am trying to wrap a ...
ivan's user avatar
  • 3
0 votes
0 answers
16 views

I have a nextjs app that runs fin on Dev on my laptop. Discover that after deployment, data fetching is not working. User and admin update not working

My Nextjs application was working fine on DEV on my laptop. But after deployment on Vercel i discover the user update is not reflecting. So, i want to know how to handle data revalidation and caching. ...
Aja Edward's user avatar
0 votes
0 answers
9 views

How to handle Caching and Revalidation in NextJS app deployed on Vercel

I created an application on Nextjs and hosted it on Vercel. Now i discovered that if user on my app update their profile or the admin update the service on the page they update does not reflect until ...
Aja Edward's user avatar
-1 votes
1 answer
57 views

Working on local but getting 500 error on vercel in Nextjs

This is the route.ts import fs from 'fs'; import path from 'path'; import PizZip from 'pizzip'; import Docxtemplater from 'docxtemplater'; import { NextRequest, NextResponse } from 'next/server'; ...
Soham Ingle's user avatar
0 votes
0 answers
21 views

How to deploy node with yarn in vercel

I have a node program with this package.json: { "name": "create-nodejs-express-app", "version": "1.7.0", "description": "Create a Node.js ...
Farid Cenreng C038DSX0869's user avatar
0 votes
0 answers
25 views

Puppeteer + API with params not work in Vercel - Or one or the other

Question There is a bug in vercel where puppeteer does not work together with an API that receives parameters. Or does the API only work Or does the puppeteer only work But, if puppeteer is being used ...
Rafael Rodrigues Pereira's user avatar
-3 votes
0 answers
23 views

500 Internal Server Error or 302 on Deployed Next.js App on Vercel When Sending Email After Auth, Works Locally

I've developed a Next.js application that sends an email to users after they sign in using NextAuth with a Google provider. The email sending functionality is implemented in an API route (api/email/...
Dave Waldorf's user avatar
0 votes
1 answer
45 views

Why is my Astro api route working locally, but no on Vercel?

I've set up an api route that uses nodemailer to send an email. Calling the POST request locally in dev mode works perfectly but upon running it via vercel hosting it times out my serverless function. ...
Benzagon's user avatar
-1 votes
0 answers
27 views

Deployment problem on vercel headers nextjs

I’m developing an app with nextjs. Everything works perfectly locally but when I deploy to vercel I get these error messages. I use nextauth.js to manage authentication (with magic link) and sessions. ...
Alexandre Pires de Almeida's user avatar
1 vote
1 answer
53 views

how to rate limit next.js server actions?

I am using server actions in next.js as per the documentation on Server Actions Everything is working well, but now I am looking to rate limit the server action, in order to prevent spam or attacks. I ...
Qiong Wu's user avatar
  • 1,536
0 votes
0 answers
26 views

Nextjs 13.5 server side not working on production deployment vercel but same code working on localhost:3000

I don't know why server side rendering not working on vercel deployment but same code working in my localhost. After investigate the log I found cookie are not sending to my backend and don't know why?...
boyenec's user avatar
  • 1,439
-1 votes
2 answers
14 views

Deploy next.js project using Vercal failure

Im working on the tutorial project of Next.js and having a problem while trying to deploy using Vercal account. The following error occur in the build stage Console output: [18:27:10.151] Running ...
Eden Hason's user avatar
-2 votes
0 answers
47 views

Next API routes vs Next server actions vs Vercel edge functions vs Supabase edge functions [closed]

I'm building a web app with Vercel and Supabase, and I see now that there are a lot of options for where to run backend/business logic. In the past, it would have either run on a monolith server or a ...
Kale's user avatar
  • 209
0 votes
0 answers
14 views

Next.js App router cache revalidation problems

So guys, sorry for the dumb question. I am trying to get familiar with the new app router technology of Next.js. Point is, everything works perfectly fine on localhost and the tech is actually amazing ...
Scoten's user avatar
  • 1
-1 votes
0 answers
16 views

Trouble Identifying Source of TypeError: fetch failed in Next.js Serverless Function

I'm encountering a TypeError: fetch failed in my Next.js application, specifically within a serverless function. The error stack trace points to a fetch operation in the validatePayments function, but ...
János's user avatar
  • 33.4k
0 votes
1 answer
23 views

deploy next.js error in vercel ✓ Generation of static pages (5/5) > The export encountered errors in the following paths: /products

I'm trying to deploy a next.js + mongodb project to Vercel, but I can't do it, it keeps giving an error: Error occurred prerendering page "/products". Read more: https://nextjs.org/docs/...
lucas oliveira's user avatar
-1 votes
0 answers
11 views

My site on Vercel has incorrect format and javascript code [closed]

I am working on making a site for my grandpa and I have completely built my site and confirmed that it works by running npx http-server and checking localhost. I have tried using Github Pages and the ...
Mythical Trashcan's user avatar
0 votes
1 answer
40 views

API not working after Hosting my react project on vercel

My backend code is also uploaded on Vercel: https://helperapi-chi.vercel.app/. Whenever I run my React app using the uploaded backend API, it runs perfectly. However, after hosting the React app, the ...
Arnab Mukherjee's user avatar
0 votes
1 answer
27 views

how to intergrate swagger ui on vercel laravel app

I have deployed my laravel app on vercel and I'm using swagger for documenting my api. Swagger is working well on my local server "http://localhost:8000/api/documentation" I need this ...
Joanita's user avatar
0 votes
0 answers
26 views

Error in Vercel deployment with OffCanvas

From the beginning of my project, in visual studio I have added Bootstrap to my project, and using the offcanvas component for my react app. If I run my project in localhost I have no problem and the ...
demartinux's user avatar
0 votes
1 answer
13 views

Mailing do not work in deployment for a next.js project

MAILING WORKS ON DEVELOPMENT BUT NOT IN PRODUCTION/ DEPLOYEMENT to VERCEL I've created a Tsx component for sending email in my Next.js application like so: import React from "react"; import {...
Arotiana RANDRIANASOLO's user avatar
-2 votes
0 answers
25 views

Vercel Issue: Error: Could not find expected browser (chrome) locally. Run npm install to download the correct Chromium revision

I just developed an API using open-source whatsappweb-js which is working fine on my local system but I got an issue on Vercel deployment. I got this error: This Serverless Function has crashed. ...
Dayan Ahmed's user avatar
0 votes
0 answers
16 views

Vercel Sveltekit long build times due to treatment of static assets?

I've got a Sveltekit site deployed to Vercel. I'm using the SSG configuration (using adapter-static). The deploys are successful but the build times have gotten very long due to, it seems: re-...
code_sanchu's user avatar
0 votes
0 answers
76 views

Next JS 14 Server action on vercel causes 405 error

I have deployed a project on Vercel using Next 14 and the new server actions rather than use an API. The actions work fine when running locally can log in fine but when I deploy to vercel it does not ...
Jack Duffy's user avatar
1 vote
1 answer
34 views

How to avoid sending third-party requests to my serverless function on vercel?

I have a game made in React and JS, and a server running serverless on Vercel. When you authenticate to my game (for now, all you need is a username), the server checks if the user already exists, and ...
Gabin's user avatar
  • 13
0 votes
0 answers
40 views

Firebase error: Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: FirebaseError: [code=permission-denied]

I'm facing an annoying problem with my next js app with firebase. So far in localhost it was all fine, I can read and write normally. I deployed it to vercel, but it can't reach my firebase database. ...
Felipe Gaioski's user avatar
0 votes
0 answers
40 views

Vercel: installing github repositories as package not working

My flask application works locally but I cannot get it working on vercel. I get the following errors: Warning: Python version "3.10" detected in Pipfile.lock is invalid and will be ignored. ...
Bob Linux's user avatar
-1 votes
0 answers
65 views

HTTP/2 support by vercel Next.js 13?

I am working on https://jses.io with Next.js 13. I use Vercel to deploy the site to production. It's simple enough and working well. Now I observe that the static files are served with protocle http/1....
Joy's user avatar
  • 9,428
0 votes
2 answers
45 views

Function running 3-150 times instead of 1 time, downstream of useEffect, getData (fetch), and myDataArray.map in NextJS 13.4+ app router

This function convertToUpperCase(item.name) runs 3-150 times. You can see it in context below. In my test db, I have only 1 row of data in my db that I am returning so I am expecting it to run only 1 ...
Octo Palm Tree's user avatar
1 vote
2 answers
160 views

How to solve modules not found in NEXT JS 14?

Vercel error message Modules not found issues in NEXT JS 14 with vercel deployment I tried to host NEXT JS project on vercel with github repo. I followed the tutorials from NEXT JS official sites but ...
Lin Khant Htel's user avatar
0 votes
0 answers
81 views

Vercel Deployment Issue: '404 Not Found'

I can deploy my api on vercel but I have problems. Always I receive the same message: I'm using Node, Express and Typescript. I have my folder dist and and also a src folder where start my project ...
ZeR0ByTe's user avatar

1
2 3 4 5
59