@@lets-build-together Thanks dude... Sorry for the late reply...didn't see your message. I went for the one on 0:57 only 👍😊 unfortunately, vercel is timing out longer operations saying "This serverless function has timed out"... But I'm gonna try other options like Render, Railway or AWS 👍
Hello, i tried deploying the backend on vercel. Deployed frontend already. Was not able to fetch some of the mongo db data, users particularly, for sign up and login. error: 504. When I deployed the backend on render, it worked. How to solve this issue?
Hi, this is serverless, so instances of your app can be started and stopped an anytime between requests. That means you need to connect to mongo before you listen on the server port. In render for example the server will start and stay running so the connection is not ready for the first second or two.
@@mehrinfirdousi3834 hey so I solved it for mine, just find and use a barebones vercel/node app from anyone else that works and slowly add your own files until it breaks. That should help you find what is the problem
Sometimes vercel is timing out for long operations, if that's the case. Deploy your application in render (ruclips.net/video/VHMAcM1T1IY/видео.html)
dont use render it provide literally 0.1 cpu
I'm confused. 0:57 and 1:21, on both these timestamps, your vercel.json looks different. What exactly do we have to mention?
Hey sorry for the confusion, please go with the one mentioned at 0.57.
@@lets-build-together Thanks dude... Sorry for the late reply...didn't see your message. I went for the one on 0:57 only 👍😊 unfortunately, vercel is timing out longer operations saying "This serverless function has timed out"... But I'm gonna try other options like Render, Railway or AWS 👍
@@jasmeetsingh4551 don't give up bro, just keep trying
Here I get "Internal server error"
Same for me too. Is it resolved?
How do you deploy .ejs - expressjs app? I've been trying to do this but got 404.
Try deploying on render.com
same
Hello, i tried deploying the backend on vercel. Deployed frontend already.
Was not able to fetch some of the mongo db data, users particularly, for sign up and login.
error: 504.
When I deployed the backend on render, it worked.
How to solve this issue?
Hi, this is serverless, so instances of your app can be started and stopped an anytime between requests. That means you need to connect to mongo before you listen on the server port. In render for example the server will start and stay running so the connection is not ready for the first second or two.
@@chitraarasuk25 already starting server after the connection sir
I think it's an issue with using vercel
You have to create the js files in different API/route/app.js
no repo link?
For environment files how you set it up? For the express js and vercel.
t just went wonderfully, man!
What if my build command builds everything to a dist/ directory? How would I change the configuration? Thank you :)
did you figure this out?
ZORDU BRAT DAVAMI GELSIN 🤙
2:09 it help me a lot; thanks !!
thank you!! it works correctly :)
thank you sir , it helped a bunch
I got a internal server error? Please upload a video resolves the error
When we used the import method (type : "module") it's not working in vercel even I already defined the type in package.json
Hey hi, i think you have to enable the es6 support for node, you can read more here www.geeksforgeeks.org/how-to-use-an-es6-import-in-node-js/
where does env came from?
bhai mere ko
This deployment does not have a deployment summary. aara !
Thank you so much, it worked.
More power to you, brother.
Thank you
If you dont mind I request tutorial how to hosting(free) postgresql database with nodejs+express+sequelize as a server please.
Render
@@TutoMaster thanks budy render is life saving netlify killed me :=?
@@footgame756 Whyyyy!
thanks you saved my api
Hi, my index.js is in src folder, what modification I need to do to vercel.json?
Hey hi, you have to tell where exactly your index file inside vercerl.json>builds ( "builds":[{"src":"./src/index.js",...}] )
Thanks mate!
Thank you 💖💖
Thanks you!
Thanks
Thank you so much ❤
Big big thanks
404 not found
Hey sorry I didn’t get you. You are facing any issue?
same.
same here
same
@@mehrinfirdousi3834 hey so I solved it for mine, just find and use a barebones vercel/node app from anyone else that works and slowly add your own files until it breaks. That should help you find what is the problem