All Questions
Tagged with vercel serverless
113
questions
0
votes
0
answers
20
views
how to actually implement a serverless function on Vercel for Vite code for production environment?
My code works perfectly fine using Vercel Dev, and a Postman request to the API route, but still, it says "Error: Error: Failed to fetch response."
I think the error may be a wrong fetch ...
-1
votes
1
answer
31
views
Error: The pattern `api/email.js` defined in functions doesn't match any Serverless Functions inside the `api` directory (Vercel/Remix-run)
email.js serverless function generated by chatgpt in my root/api/email.js directory:
//[root]/api/email.js
//just a test function generated by chatgpt
import sendEmail from "../utils/email";
...
0
votes
0
answers
76
views
Vercel deployment changing maxDuration not working, functions config not recognizing my routes
I am trying to deploy my backend to Vercel but increasing the maxDuration to 30 seconds. However, builds does not support modifying a functions maxDuration so I attempted to use the functions config. ...
0
votes
0
answers
27
views
Transfer from cloudflare worker to vercel
I want to move the following code that works in Cloudflare Worker to another server like Vercel
worker.js
addEventListener(
"fetch", event => {
let url = new URL(event.request....
0
votes
0
answers
57
views
Execute a Perl script on a Vercel serverless function
My Node/Express backend is using a library (exiftool-vendored) that executes a Perl script. How can I have it running on my Vercel Serverless Function?
Server Logs:
Unhandled Rejection: Error: Perl ...
0
votes
0
answers
33
views
Too many requests on AWS Image optimizing functions SST Nextjs
I've deployed my application to AWS following the guide at https://docs.sst.dev/start/nextjs. However, when accessing a specific page with many images, the Next.js <Image /> component returns a ...
1
vote
0
answers
56
views
coldstart of vercel's serverless function suddenly became very slow
I used and deployed next.js using vercel.
Some pages that normally use getServersideProps took about 2 seconds with a long coldstart.
But yesterday, suddenly it was slowing down to almost 10 seconds.
...
0
votes
0
answers
37
views
FUNCTION_INVOCATION_FAILED, Dynamic Routing on sveltekit and vercel
I have a svelte project where I use dynamic routes that works the local but not after deploying to vercel. In particular what does not work is just the page with the dynamic route, this is the error:
...
0
votes
0
answers
105
views
Vercel | Puppeteer Navigation failed because browser has disconnected
I’m trying to make a simple HTML to PDF API using Puppeteer but I keep getting this error message when sending a decent-sized HTML file. Nothing too crazy maybe a page or two. Here is the error and ...
0
votes
0
answers
27
views
Firebase Client SDK causing 404 and Offline Issues in SvelteKit Web App on Vercel
I am encountering an issue with my SvelteKit web app deployed on Vercel, where the frontend shows a 404 error, and the Vercel logs indicate that Firebase cannot retrieve the document as it is offline. ...
0
votes
0
answers
46
views
PDF Generation Styling Breaking with Serverless Nextjs
Context: I'm using pages directory on nextjs 13 on vercel. I have a feature that allows users to download a PDF report. I send stringified html to a standalone api endpoint hosted on a continuously ...
1
vote
1
answer
139
views
Vercel This Serverless Function has timed out
I have deployed my Express.js server using Vercel serverless service and it was deployed successfully, however every time I use an endpoint it shows me 'This Serverless Function has timed out' error. ...
0
votes
0
answers
66
views
vercel express js app using @aws-sdk/client-s3 crashes
I am trying to deploy a expressjs app to vercel serverless. I am using @aws-sdk/client-s3 3.478.0. It works on local dev machine but I get this error when deploying to vercel. If I remove the code ...
0
votes
0
answers
177
views
Vercel Next.js - third-party package fetch - CACHE MISS
I have many deployed projects on Vercel.com, recently I combined many common interfaces and apis in node_modules package.
All of my FETCH api have revalidate tag on fetch, cache HIT was every second ...
1
vote
1
answer
154
views
Vercel (local) Serverless Functions with Vue3 returns js file body content?
I'm trying to add a function to my Vue3 app in Vercel. I was hoping to get it running locally using Vercel CLI (which seems to be running on vite).
I think I got it hosting locally just fine, however ...