bro i have made frontend and backend. i have deployed the backend on vercel and then I deployed my frontend on vercel I am getting cors error because each time Iadd the deployed links they gets changed with the new link . is there any way to connect with you
Go to the cloud.mongodb.com and create free cluster there and you will get a mongoDb url so use that url in your project so you can access it from local and as well as from hosted place.
hi I have this error WARN! You defined 1 build that did not match any source files (please ensure they are NOT defined in .vercelignore): - {"src":"./server.js","use":"@vercel/node"}
The error indicates that the build configuration in the `vercel.json` file defines a source (`"src": "./server.js"`) that does not match any actual source files. It suggests ensuring that the file is not included in `.vercelignore`. To resolve this issue: 1. Check your file paths: Ensure that `server.js` exists in the root directory or the correct path as per your build configuration. If it's in a different directory, update the `src` path accordingly. 2. Check `.vercelignore`: Ensure that `server.js` is not being ignored by `.vercelignore`. If it is listed there, remove it. 3. Verify your `vercel.json`: Make sure the configuration in your `vercel.json` matches the actual file structure and paths. Example of a corrected `vercel.json`: ```json { "builds": [ { "src": "./server.js", "use": "@vercel/node" } ] } ```
When i typed vercel, I was asked some questions. One question was "Import from existing project?" and i clicked no by following your instruction. but i have the codebase in github and now is it possible for me to connect with the github repo and avoid vercel --prod to deploy the changes each and everytime?
Error: File /vercel/path1/node_modules/transformers/node_modules/uglify-js/tools/exports.js does not exist. can you help me. Whatever i do this error haunted me
it used to say 404 not found , but now it outputs the whole source code . what should i do
Make sure to follow those 3 steps mentioned in video.
thanks bro, very helpful
You're welcome brother
it throws error, i disable authentication from project setting , now its working
Ok, as vercel is designed for static sites but still we can just use it for backend deployment (Testing and learning purposes)
i was missing the step where we change the package file ,, thanks a lot bro
You're welcome brother
Thanks Bro after lots of effort i get the right way to deploy with your video
You're welcome bro!
Thanks Man You Have Solved My Problem GOD Bless You
You're welcome 🤗
Happy to hear 💜
Amen and thanks
Thank you bro! it helps me a lot 🙏🙏🙏
You're welcome bro . Happy to hear 🌞
bro i have made frontend and backend. i have deployed the backend on vercel and then I deployed my frontend on vercel I am getting cors error because each time Iadd the deployed links they gets changed with the new link . is there any way to connect with you
Contact me via engrharis.uetm@gmail.com
Go to your vercel dashboard and get the link from there and whenever you push Changes so use vercel --prod (double dash prod)
Are you solved the problem ?
Bro, how to connect with mongodb with node js in deployment. I want to host express,mongodb
Go to the cloud.mongodb.com and create free cluster there and you will get a mongoDb url so use that url in your project so you can access it from local and as well as from hosted place.
If you are using offline (compass) so switch to cluster (cloud.mongodb.com)
hi I have this error
WARN! You defined 1 build that did not match any source files (please ensure they are NOT defined in .vercelignore):
- {"src":"./server.js","use":"@vercel/node"}
The error indicates that the build configuration in the `vercel.json` file defines a source (`"src": "./server.js"`) that does not match any actual source files. It suggests ensuring that the file is not included in `.vercelignore`.
To resolve this issue:
1. Check your file paths: Ensure that `server.js` exists in the root directory or the correct path as per your build configuration. If it's in a different directory, update the `src` path accordingly.
2. Check `.vercelignore`: Ensure that `server.js` is not being ignored by `.vercelignore`. If it is listed there, remove it.
3. Verify your `vercel.json`: Make sure the configuration in your `vercel.json` matches the actual file structure and paths.
Example of a corrected `vercel.json`:
```json
{
"builds": [
{
"src": "./server.js",
"use": "@vercel/node"
}
]
}
```
@@CodeSplitter thank you, to be honest I didn't expect a response ai appreciate it, I just figured this out as well, ill subscribe to your channel
what about the environment variables?
You can add there as well in vercel but if you push it along so it work also.
Really appreciate the explanation way
Happy to hear that, thank you.
If i change anything in the code how it will update in vercel
You have to type "vercel --prod" every time when you push latest changes to vercel
And it is told in video already. Kindly watch video again if you are still confused.
When i typed vercel, I was asked some questions. One question was "Import from existing project?" and i clicked no by following your instruction. but i have the codebase in github and now is it possible for me to connect with the github repo and avoid vercel --prod to deploy the changes each and everytime?
Yes but for that you have to connect with GitHub from vercel
Thank you. It helped so much.
Happy to hear that!
You're welcome.
So helpful for me. Thank you so much
You're Welcome dear.
Happy to hear that.
Do we have to upload the vercel.json file to git hubrepo
Yes but it's directly deployment and has no connection with git.
I get the Error: The package `@vecel/node` is not published on the npm registry. Do you know why?
Delete node modules and then try install again and see
it say "500: INTERNAL_SERVER_ERROR" how should i fix. Help me please.
Code was running smoothly on localhost?
If so, then follow the exactly 3 steps mentioned in video and you would be able to deploy correct
@@CodeSplitter yes
Getting 500 error of serverless function crashed
Make sure you uploaded the correct vercel.json file
And correctly followed that 3 steps
@@CodeSplitter already followed all steps still not working
Currently i had successfully deployed same project in render
@@amitvarotaria2683 then it shouldn't throw such an error. BTW good to done with render.
@@amitvarotaria2683 same case with me on vercel im getting server timeout error
i have no file sever.json in my node.js project
i am using tyepscript so which will be the file?
Look for either server.ts, index.ts or app.ts
ts / tsx
Great video! Will my backend be always accessible at all time?
Yes
Nice One
Thank you
Thank you!
You're welcome!
I get 404 file not found error
Make sure to follow those three steps mentioned in video.
Thank you.
You're Welcome dear.
says "vercel" is not a command
Make sure you installed vercel
npm install -g vercel
@@CodeSplitter I already do that but keeps showing error
@@ZabalaX make sure you are using CMD not PowerShell
gracias
Thank you!
Error: File /vercel/path1/node_modules/transformers/node_modules/uglify-js/tools/exports.js does not exist.
can you help me. Whatever i do this error haunted me
Make use that you are using latest dependences.
I never got this error
Try delete project from vercel and uninstall deps and then run npm install/ yarn add
And make sure to follow that 3 steps correctly
is it free ?
Yes