All Questions
104
questions
0
votes
0
answers
8
views
Next.js - Mongoose - Vercel Deploying Problem
async function fetchImages() {
try {
const newURL = process.env.NEXTAUTH;
clg(newURL)
const res = await fetch(`${newURL}/api/images`, { next: { revalidate: 3600 } });
if (!res.ok) {
...
0
votes
0
answers
17
views
Issues with CORS and HTTP Requests in Vercel Deployment for Node.js and MongoDB Backend
I'm facing issues with CORS and HTTP requests in my project deployed on Vercel. The project involves a Node.js backend (node-backend.vercel.app) and a frontend (frontend-part.vercel.app). I have ...
0
votes
0
answers
11
views
MongoDB + nextAuth problem when npm run build
im using Next.js 14.2.4
this is mine app/api/auth/[...nextauth]/route.ts
in npm run dev all works fine, but when I go npm run build I get this error:
app/api/auth/[...nextauth]/route.ts
Type error: ...
0
votes
0
answers
22
views
Nextjs hosted in Vercel causing MongoDb collection naming issue
I have a TurboRepo with NextJs web app using MongoDb for database and hosted on Vercel. Here are the versions of the packages:
next: 14.2.4
@typegoose/typegoose: 11.3.0
mongoose: 7.3.1
node: 18.18.2
...
0
votes
0
answers
26
views
How to use Mongo change stream with Next Js (Server-Sent Events (SSE))?
I am working on a Next.js chat application that uses MongoDB to store chat messages. After sending a message, it gets inserted into the collection, but I'm facing issues with reading the messages in ...
0
votes
0
answers
13
views
How does Mongoose handle multiple connect calls?
I have read through the documentation for connections and am confused about what will occur if I call mongoose.connect on every request to my express server with the same URL and options. Will the ...
0
votes
0
answers
66
views
Intermittent Mongoose cannot connect to any servers in Atlas cluster error
Other similar questions exist on this forum. My issue cannot be related to IP allow listing as is intermittent and generally only occurs after the function has been idle for some time.
I am running an ...
0
votes
0
answers
45
views
(Vercel/ MongoDB): Failed to connect with the database: querySrv ETIMEOUT
I can run my ExpressJS API locally using the "vercel dev" command, but when I try to deploy it ("vercel" command) I get this error: "Failed to connect with the database: ...
0
votes
0
answers
70
views
Internal Server Error (500) on Vercel Deployment - Works Fine Locally
m encountering an issue where my application runs without any problems locally, but when I deploy it to Vercel, I receive a 500 Internal Server Error. I need some assistance to diagnose and fix this ...
0
votes
0
answers
78
views
Why am i getting this error while deploy FastAPI on vercel?
I'm getting this error, trying to host an API on FastAPI.
And this log on vercel's logs page.
LAMBDA_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in ...
0
votes
0
answers
11
views
Next JS - MongoDB / error ETIMEOUT on Vercel during build
I am trying to deploy a Next.js app that uses MongoDB on Vercel. The development environment works fine, but Vercel returns the following error:
Error: querySrv ETIMEOUT _mongodb._tcp.cluster0.nxug582....
0
votes
0
answers
21
views
404 NOT_FOUND error when deploying my NextJS MERN stack webapp to Vercel
Currently trying to deploy my web app to Vercel and no matter how much tutorials I watch or read, it still shows 404 NOT_FOUND when I deploy my web app to vercel.
My vercel.json file
{
"version&...
0
votes
0
answers
53
views
504: GATEWAY_TIMEOUT Code: FUNCTION_INVOCATION_TIMEOUT deploying to vercel
I'm trying to upload my project to vercel but every time I try it keeps saying the error. I'm using mongo dB with azure which has the free database in south Asia. so I used that and made the storage ...
0
votes
1
answer
67
views
504 Gateway timeout when trying to access a MongoDB collection from a Vercel deployment
I have a basic NodeJS project with this structure:
/configs
db.config.js
/routes
testRoutes.js
index.js
vercel.json
Where the index.js where the server is looks like this:
const express = require(...
0
votes
0
answers
57
views
Starting the MongoMemoryServer Instance failed, enable debug log for more information
Deploying backend to Vercel. API's not working, getting a 500 internal server error. Vercel logs are as follows:
Starting the MongoMemoryServer Instance failed, enable debug log for more information. ...