Skip to content

"Fix MongoDB connection timeout on Vercel serverless"#93

Open
lnqminh3003 wants to merge 1 commit intobackendfrom
revert-92-revert-88-fix/mongodb-stale-connection
Open

"Fix MongoDB connection timeout on Vercel serverless"#93
lnqminh3003 wants to merge 1 commit intobackendfrom
revert-92-revert-88-fix/mongodb-stale-connection

Conversation

@lnqminh3003
Copy link
Collaborator

Reverts #92

@lnqminh3003
Copy link
Collaborator Author

The current issue is the way that we bundle the code and deploy to serverless environment (Vercel).

Vercel expects everything to start from /api/index.ts and handles the build and dependencies automatically. However, your change in /api/index.ts is importing code from outside the /api. It maybe a reason why it breaks the cloud version

I think we have 2 approaches rn:

  • update your change to somehow can deploy to Vercel
  • change how we deploy to Vercel - change CI/CD pipeline (keep your change - I tried but I failed to do that - must try again)

@rxmox @Lujarios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants