Questions tagged [vercel]
For software-development questions about Vercel, a frontend cloud deployment platform.
vercel
3,539
questions
0
votes
0
answers
6
views
API is working fine in dev mode(localhost://3000) but not in production
I am currently working on a Next.js project that uses Hono as the backend framework and Neon as the database. During development, all APIs function correctly on localhost (http://localhost:3000). ...
0
votes
0
answers
13
views
No data is output from Strapi
I upload the site to Vercel and add the connection data:
NEXT_PUBLIC_STRAPI_API_TOKEN
and
NEXT_PUBLIC_STRAPI_API_URL
If I run it locally via npm run dev, all the data is displayed, but as soon as I ...
0
votes
0
answers
15
views
Error: File /vercel/path0/api/node_modules/transformers/node_modules/uglify-js/tools/exports.js does not exist
I am having err in deploying site in vercel. My website is running smoothly in localhost but having err in deploying
err:
enter image description here
this is website directory
this is package.json:
...
0
votes
1
answer
14
views
Adding github secrets to CI/CD actions to Vercel deployment
I want to build and deploy my NextJS app to Vercel with environments from github secrets (not from env file or from vercel directly).
Here is my workflow (a development one):
on:
push:
branches:
...
0
votes
0
answers
27
views
CORS error with deploying an express js server with vercel [closed]
Followed the instructions here to run an express server but I'm dealing with CORS errors when calling the backend via my next js app.
How can I make this work? Suggestions for alternate deployment ...
0
votes
0
answers
9
views
Translation json files not found when deploying project to vercel
I am using next-intl package to localize my next app. On localhost, everything works as it is supposed to, but when I deploy the app to vercel, it seems that app cannot find the json files.
The build ...
0
votes
0
answers
17
views
Keep getting error `[vite]: Rollup failed to resolve import "tslib" from "/vercel/path0/node_modules/.pnpm/[email protected]` upon deployments to vercel
I am building an AstroJS project with Sanity as CMS - on my development environment everything works fine and the build is also successful
But when I try to deploy the project to vercel, I keep ...
0
votes
1
answer
18
views
SvelteKit + Vercel Serverless Function Crash : [ERR_INVALID_MODULE_SPECIFIER]
I would sure be glad if someone could help me here...
My website is built using SvelteKit (v2), with Prismic as a CMS, and deployed via Vercel.
Everything runs smoothly locally, with no error, in the ...
0
votes
0
answers
21
views
Nuxt Vercel Deployment Failing
Worth a shot asking here. I am having trouble deploying my Nuxt app onto Vercel for some strange reason, I can't pinpoint the error. When I deploy, everything seems fine in the deployment script, but ...
0
votes
0
answers
16
views
PrismaClientInitializationError: Can't reach database server
I'm unable to get the site running and connect to the database. I keep getting this error whenever I do npm run dev. I have even attempted to set connect_timeout to 1 and pool_timeout to 0, pgbouncer ...
0
votes
0
answers
19
views
The Open Graph image for a Next.js 14 site hosted on Vercel requires authentication to display
I have multiple websites built with Next.js 14 where I've implemented Open Graph using either opengraph-image.tsx or a special API route for dynamic generation. Strangely, while the opengraph-image....
-1
votes
0
answers
18
views
Why am I getting visits from USA in my app's analytics dashboard even though I am from India and i just deployed the app? [closed]
I just added vercel analytics to my app and deployed it. I am from india and i did not distribute the app link to anyone except visiting the site myself. Then why is my analytics dashboard showing ...
0
votes
0
answers
11
views
my flask app is locally working but not able to deploy globally
from flask import Flask, render_template, request, jsonify
from meta_ai_api import MetaAI
from flask_cors import CORS
import logging
from main import MetaAI
import sys
import os
current_dir = os.path....
0
votes
0
answers
5
views
How to host a express js backend in vercel,i am getting error 404
I am trying to host an express js backend api on vercel
Here its my project structure for the backend folder . I am trying to host the backend folder
everytime it says me 404 error not found
This is ...
1
vote
1
answer
51
views
why is the "Uncaught ReferenceError: process is not defined" problem so hard to diagnose in my nextjs app?
I am using Nextjs, and want to call process.env from within a page. I overrode the default Document with _document.js and wrote this:
export default function Document() {
return (
<Html>
&...