3,400 questions
0
votes
0
answers
148
views
vercel laravel deployment static files not loading (js, css not loaded )
Build-generated static files are not loading after deploying laravel app to vercel, I tried different vercel.json "routes" options found in various responses and those didn't work:/ My ...
1
vote
0
answers
73
views
NEXT JS Static Website Unhandled Runtime Error: Error: Failed to load chunk static/chunks/node_modules_85ff16._.js from module
I checked a similar Q&A on the forums but could not find the answer I was looking for. I am developing a static website with NextJS, Framer Motion, Tailwind, and SCSS. Everything was fine until I ...
-1
votes
1
answer
63
views
Swagger : No operations defined in spec!, Express Typescript on Vercel
I'm using Swagger, and everything was working perfectly on my localhost. However, after deploying my project to Vercel, Swagger no longer works at all. I encountered the following error:
Blank Page
...
0
votes
1
answer
87
views
TimeOut Error: Problems with MongoDB Atlas configuration in Production Environment (Vercel)
I’m having TimeOut errors when I try to save or find out something in the collections of the clusters. Here is an example of the log:
Error en authorize: MongooseError: Operation `users_profiles....
0
votes
0
answers
186
views
Image generation with Replicate API keeps failing and also get predictor error
I am trying to allow a user to upload around 5 photos so that I can pass it through 2 Replicate API Models based on a prompt. I want it so that it trains then generate image based on prompt then a ...
-1
votes
1
answer
27
views
Next.js app refresh error upon deployment
I developed a game-like website for trial purposes.
I am using Math.floor(Math.random()*9) in order to generate a random whole number between 0 and 9, so i can use it as a random index for an array of ...
1
vote
0
answers
66
views
Deploy Nest Js Project + Prisma on Vercel
I am trying to deploy a NestJJ project on Vercel. I get an error. When I look at the logs I see that I get this:
I deployed my Prisma database to Vercel succesfully and even added this vercel.json ...
0
votes
1
answer
890
views
Tailwindcss v4 not working when deployed with vercel
I am using Sveltekit and Tailwindcss v4.
When I checked locally, tailwindcss was working.
However, when deployed in vercel, Tailwindcss did not work.
I was told that it would work if I changed the ...
0
votes
1
answer
253
views
Ionic Angular 19 deployment issues in Vercel
I recently updated my ionic-angular app from version 18 to 19 and after that the deployment in Vercel didn't work any more. I spend 2 day looking for a solution but there was not any clue.
These were ...
0
votes
0
answers
87
views
Next.js App Router: Dynamic Route searchParams Undefined in Vercel Deployment
I am experiencing an issue with the dynamic route page structure in Next.js's App Router. Specifically, when I print the props data params and searchParams in my local environment, everything works ...
0
votes
0
answers
116
views
When I try to deploy my project to vercel with my package.json code, I get the error below
This is the error I get from Vercel when I try to deploy my NextJS project (npm run build works fine but Vercel is erroring out):
npm error @tiptap/starter-kit@"^2.11.5" from the root ...
1
vote
0
answers
74
views
Next.js Sitemap.xml Returning 404 on AWS Amplify but Works on Vercel
I have a Next.js application where:
Staging is hosted on Vercel (everything works fine).
Production is hosted on AWS Amplify.
When I check the sitemap in Vercel, it returns the expected results:
https:...
-3
votes
1
answer
329
views
Deploying Shopify Remix App with Vercel Issues
I've built my app in dev mode, all working well with shopify app dev, I then pushed to a new github repo and linked that up to a remix vercel project, duplicating .env in Vercel's env variables.
I ...
0
votes
0
answers
49
views
ISR data cache is null until I re-deploy it (in vercel)
I'm trying to perform an ISR fetch revalidation request. I tried this:
let data=await fetch(process.env.NEXT_PUBLIC_NodeURL+'/admin/panel/api',{
next:{ revalidate: 60 }//1 minute
}).then((response)...
0
votes
1
answer
58
views
Media queries not working after deploying project to Vercel
I’m currently working on a project with React and I’ve encountered an issue. The media queries are not working:
@media screen and (max-width: 768px) {
/* styles here */
}
When I check how the page ...
0
votes
0
answers
34
views
Hosting Angular i18n Application
I am currently trying to host an Angular 19 application with i18n support on Vercel. When building an app with the different localizations, the build files are located under:
app/project-name/browser/...
0
votes
0
answers
91
views
FastAPI + Selenium WebDriver on Vercel: Cache Folder Read-Only File System Error
I am trying to deploy a FastAPI application with Selenium WebDriver on Vercel. The application works fine locally, but when deployed to Vercel, I encounter a read-only file system error related to the ...
2
votes
1
answer
384
views
PostgreSQL (Neon/Vercel) always returns TIMESTAMP instead of DATE — How to fix this?
I'm using Vercel Postgres (Neon), and my table has a column start_date stored as a DATE type. However, when I query it, PostgreSQL always returns a full timestamp (YYYY-MM-DDTHH:MM:SSZ) instead of ...
0
votes
0
answers
27
views
__filename missing in a Nuxt 3 project on Vercel
I'm working on a Nuxt 3 project that is fully based on ECMAScript modules and is deployed on Vercel. Some dependencies (or their compiled code) expect CommonJS globals like __filename, but in an ESM ...
0
votes
2
answers
295
views
Getting Flask app to deploy on Vercel with Docker: App.py is downloaded instead of being served as an image
I'm deploying a Flask application on Vercel using Docker, but when I access my endpoint to generate an image, the app.py file is downloaded instead of returning the expected image.
I have created a ...
1
vote
1
answer
84
views
Next.js API on Vercel Returns Old Data Instead of Latest
I have created a Next.js API to fetch all histories from my database. The API implementation is as follows:
export async function GET(req: NextRequest) {
await dbConnect();
try {
const history = ...
0
votes
0
answers
81
views
Cookies, csrf protection with spring boot and next js (Render.com, Vercel.com)
I have a backend in Spring boot 3.4.2 and a frontend Next JS 15.0.4.
I have authentication on backend side with google oauth2 and it works.
My cooki setup locally works with localhost:3000 and ...
1
vote
1
answer
199
views
Cannot find DNS Record of Vercel-provided domain (<project-name>.vercel.app) when Setting Up Google Search Console
Google Search Console requires the DNS record of the domain but I couldn't find it in Vercel Dashboard. It isn't in the Domains tab of dashboard or domains section of my project settings. I used ...
0
votes
1
answer
76
views
Next.js API Route Timezone Conversion Inconsistent Between Development and Production (Vercel)
I'm building an attendance tracking application using Next.js, Prisma, and PostgreSQL. I'm experiencing inconsistent timezone handling between my local development environment and my production ...
0
votes
0
answers
67
views
Vercel deployment doesn't activate the latest version
I have this flutter app deployed on vercel, but whenever I do updates on the code and re-deploy to vercel, the newer version isn't really there, although I do promote to production, and when I see the ...
0
votes
0
answers
60
views
Vercel NextJS: How can I redefine the route of 404 error page
On NextJS (deployed in Vercel), by default, the 404 error page is .com/404. I need to change it to .com/errors/404.
I've tried reading the docs (https://vercel.com/guides/custom-404-page) and even ...
0
votes
0
answers
65
views
Trouble with Deployment in Vercel
So I have been having some issues lately with a project I have been doing.
You see, I have been working with a client in building a small landing page for their startup.
The project went well it was ...
0
votes
1
answer
1k
views
Largest Contentful Paint very slow on mobile using Next.js
I have a website, https://www.paveinsight.com that I'm working on. The site is written using Next.js and hosted on Vercel and the home page is generated as a static page.
Running PageSpeed Insights, ...
1
vote
0
answers
128
views
Is there a reason why vercel is not deploying my react app due to missing routes-manifest.json file?
I am trying to deploy my react app using vercel. These are the instructions I have used:
Vercel CLI
Install the Vercel CLI and run vercel to deploy.
Vercel will detect that you are using React and ...
0
votes
1
answer
175
views
Vercel deployment works locally via CLI but fails with 404 Not Found or page not found when triggered via GitHub integration (Astro.js)
I’m working on an Astro.js project and deploying it to Vercel. When I deploy using the Vercel CLI (vercel or vercel deploy), everything works perfectly. However, when the deployment is triggered ...
0
votes
1
answer
241
views
Error building react build folder using vercel.json. Attempting to build react build folder as well as run serverless nodejs server using vercel.json
Project background:
I have a fullstack project with 2 subfolders: client(reactJS) and server(nodeJS).
Using vercel to deploy the entire fullstack project
Folder organisation:
- client
- src
...
0
votes
0
answers
134
views
Vercel keeps saying that it is "Unable to detect a Project Id in the current environment" even when I already put the Project ID in the env
So I have a website written using Astro that collects stamps. It has an API written in React that will read from the Firebase DB. When I ran it locally, it works just fine. But when I hosted it to ...
2
votes
1
answer
965
views
Vercel doesn't deploy any branch automatically (No Deployment)
I have a pro vercel subscription. I have my github connected, and I set up a hook so that I can manually push from main and that works.
I want:
Automatic preview pushes and branches from all branches
...
2
votes
0
answers
712
views
Best approach for Using AWS Amplify Gen 2 with Separate Backend and Frontend Repositories
I am working on a project where I want to use AWS Amplify Gen 2 for the backend while keeping the frontend and backend in separate Git repositories. The backend will be fully managed by AWS Amplify, ...
1
vote
1
answer
390
views
NextJS Vercel redirects issue
I am having an issue with Google Search Console saying that there are too many redirects on my homepage. So basically, I want the redirect to happen to both - http and non-www, it means i want both to ...
1
vote
0
answers
36
views
command not found when trying to use rsync on Vercel
I have a python script which runs as part of yarn build for my static-site project deployed to Vercel. The script uses rsync to do some file copying, using os.system to make the call to rsync from ...
1
vote
2
answers
122
views
My cart component in an ecommerce project keeps redirecting to homepage instead of checkout and logs out the user in production
To be clear, I am encountering this issue only on production where after a user successfully logs in, selects products they want and add to cart, on clicking the checkout button which should take the ...
0
votes
1
answer
526
views
Error on Vercel deployment - Next.js Commerce template
When running build process on Vercel Deployment, I get this error
Failed to build /search/page: /search (attempt 1 of 3) because it took more than 60 seconds. Retrying again shortly.
Failed to build /...
1
vote
0
answers
45
views
Error: ENOENT: no such file or directory when generating sitemap in Next.js on Vercel
I’m building a Next.js app deployed on Vercel, and I’ve implemented a dynamic sitemap generator in /src/app/sitemap.ts. The sitemap is generated by scanning markdown files in a _posts directory ...
1
vote
0
answers
566
views
How to use Playwright with Chromium on Vercel serverless functions?
I'm trying to use Playwright with Chromium in a serverless function on Vercel, but the Chromium installation fails during deployment due to the lack of support for apt-get and the absence of necessary ...
-1
votes
1
answer
154
views
Hosting Next.js build (.next directory) on Vercel without full source code
I have a .next build folder from a Next.js project and want to deploy it on Vercel without the source code. I pushed only the .next folder to GitHub.
My Vercel settings:
Build Command: echo "...
0
votes
1
answer
107
views
Puppeteer-core works fine locally but fails when deployed to vercel
I have trying to scrape using pupperter in Nextjs App router. it worked fine when i did it locally but when deployed to vercel it failed.
here is the corresponding code:
import puppeteer, { ...
0
votes
0
answers
77
views
My remix + prisma application gets 404 on Vercel Deployment
I wanted to try Remix app and Prisma with PostreSQL.
I have developed the project and wanted to publish.
I have followed the docs and send my project to Github. Then in Vercel I followed the publish ...
0
votes
0
answers
61
views
Next.js app is not reading value from env file
The error message states: 'VercelPostgresError - missing_connection_string: You did not supply a connectionString and no POSTGRES_URL env var was found.' I've already added the connection string to my ...
1
vote
1
answer
196
views
Getting an error when deploying a Next.js Project with Lottie Animations
I use Vercel and want to deploy a project. I'm using Lottie Animations that I have as JSON Data in the project. But Vercel just throws this error:
[15:23:18.194] > next build
[15:23:18.194]
[15:...
1
vote
3
answers
1k
views
Deploy react-router-v7 to Vercel
I upgraded my remix app to react-router-v7 but cannot get it to deploy on Vercel (used to work fine).
I have done all the things all the internet says but something is going wrong with the type ...
0
votes
0
answers
58
views
Loading MDX Files From public Directory In NUXT (production)
I Am Currently Trying to load mdx files from my nuxt projects public/docs folder my approch currently is as follows
async function loadMDX(componentPath) {
try {
const { public: { docsBasePath ...
1
vote
0
answers
249
views
"Error 'sh: line 1: vite: command not found' when deploying on vercel: Error: Command 'vite build' exited with 127
I'm trying to deploy my React project using Vite on vercel, but when the deployment process reaches the build step, I encounter the following error:
sh: line 1: vite: command not found
Error: Command &...
1
vote
0
answers
216
views
Run cloudflare turnstile on preview deployments with autogenerated domains
I have a site hosted on vercel that uses Cloudflare Turnstile for spam prevention. I'd like to be able to test the whole site end-to-end on the preview deployments that vercel gives me. However, these ...
0
votes
0
answers
131
views
ERROR - Deploy Vercel with Laravel and VueJS (ziggy)
I'm having a problem with the implementation in Vue + Laravel.
This is my second project with laravel and vue with the same ziggy problem, I have the impression it's because I'm using WSL in both ...