Deploy Node JS or Express JS Project to Vercel | Free Node Js Deployment

  Рет қаралды 12,847

Code Splitter

Code Splitter

Күн бұрын

Пікірлер: 87
@galaxytube9903
@galaxytube9903 4 күн бұрын
it used to say 404 not found , but now it outputs the whole source code . what should i do
@CodeSplitter
@CodeSplitter 4 күн бұрын
Make sure to follow those 3 steps mentioned in video.
@abdulhanan5656
@abdulhanan5656 13 күн бұрын
thanks bro, very helpful
@CodeSplitter
@CodeSplitter 13 күн бұрын
You're welcome brother
@MFahad-o2e
@MFahad-o2e 4 күн бұрын
it throws error, i disable authentication from project setting , now its working
@CodeSplitter
@CodeSplitter 3 күн бұрын
Ok, as vercel is designed for static sites but still we can just use it for backend deployment (Testing and learning purposes)
@yogi4019
@yogi4019 15 күн бұрын
i was missing the step where we change the package file ,, thanks a lot bro
@CodeSplitter
@CodeSplitter 14 күн бұрын
You're welcome brother
@chandangupta6970
@chandangupta6970 6 ай бұрын
Thanks Bro after lots of effort i get the right way to deploy with your video
@CodeSplitter
@CodeSplitter 6 ай бұрын
You're welcome bro!
@Alihaidertesting
@Alihaidertesting 5 ай бұрын
Thanks Man You Have Solved My Problem GOD Bless You
@CodeSplitter
@CodeSplitter 5 ай бұрын
You're welcome 🤗 Happy to hear 💜
@CodeSplitter
@CodeSplitter 5 ай бұрын
Amen and thanks
@rosarioscarlata4178
@rosarioscarlata4178 Ай бұрын
Thank you bro! it helps me a lot 🙏🙏🙏
@CodeSplitter
@CodeSplitter Ай бұрын
You're welcome bro . Happy to hear 🌞
@tushuoye
@tushuoye 3 ай бұрын
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
@CodeSplitter
@CodeSplitter 3 ай бұрын
Contact me via engrharis.uetm@gmail.com
@CodeSplitter
@CodeSplitter 3 ай бұрын
Go to your vercel dashboard and get the link from there and whenever you push Changes so use vercel --prod (double dash prod)
@rezkgmal2181
@rezkgmal2181 Ай бұрын
Are you solved the problem ?
@junumon547
@junumon547 22 күн бұрын
Bro, how to connect with mongodb with node js in deployment. I want to host express,mongodb
@CodeSplitter
@CodeSplitter 21 күн бұрын
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.
@CodeSplitter
@CodeSplitter 21 күн бұрын
If you are using offline (compass) so switch to cluster (cloud.mongodb.com)
@ULtraBoy409
@ULtraBoy409 3 ай бұрын
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"}
@CodeSplitter
@CodeSplitter 3 ай бұрын
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" } ] } ```
@ULtraBoy409
@ULtraBoy409 3 ай бұрын
@@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
@PatriciaStover-o5f
@PatriciaStover-o5f 3 ай бұрын
what about the environment variables?
@CodeSplitter
@CodeSplitter 3 ай бұрын
You can add there as well in vercel but if you push it along so it work also.
@justlearn973
@justlearn973 6 ай бұрын
Really appreciate the explanation way
@CodeSplitter
@CodeSplitter 6 ай бұрын
Happy to hear that, thank you.
@venkatmanikantha9976
@venkatmanikantha9976 4 ай бұрын
If i change anything in the code how it will update in vercel
@CodeSplitter
@CodeSplitter 4 ай бұрын
You have to type "vercel --prod" every time when you push latest changes to vercel
@CodeSplitter
@CodeSplitter 4 ай бұрын
And it is told in video already. Kindly watch video again if you are still confused.
@sanjanasen2377
@sanjanasen2377 3 ай бұрын
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?
@CodeSplitter
@CodeSplitter 3 ай бұрын
Yes but for that you have to connect with GitHub from vercel
@ishalinibalan3003
@ishalinibalan3003 4 ай бұрын
Thank you. It helped so much.
@CodeSplitter
@CodeSplitter 4 ай бұрын
Happy to hear that! You're welcome.
@htooko99
@htooko99 5 ай бұрын
So helpful for me. Thank you so much
@CodeSplitter
@CodeSplitter 5 ай бұрын
You're Welcome dear. Happy to hear that.
@senazain
@senazain 4 ай бұрын
Do we have to upload the vercel.json file to git hubrepo
@CodeSplitter
@CodeSplitter 4 ай бұрын
Yes but it's directly deployment and has no connection with git.
@fazalhakim11
@fazalhakim11 6 ай бұрын
I get the Error: The package `@vecel/node` is not published on the npm registry. Do you know why?
@CodeSplitter
@CodeSplitter 5 ай бұрын
Delete node modules and then try install again and see
@Somvang-t7n
@Somvang-t7n 4 ай бұрын
it say "500: INTERNAL_SERVER_ERROR" how should i fix. Help me please.
@CodeSplitter
@CodeSplitter 4 ай бұрын
Code was running smoothly on localhost?
@CodeSplitter
@CodeSplitter 4 ай бұрын
If so, then follow the exactly 3 steps mentioned in video and you would be able to deploy correct
@Somvang-t7n
@Somvang-t7n 4 ай бұрын
@@CodeSplitter yes
@amitvarotaria2683
@amitvarotaria2683 6 ай бұрын
Getting 500 error of serverless function crashed
@CodeSplitter
@CodeSplitter 6 ай бұрын
Make sure you uploaded the correct vercel.json file
@CodeSplitter
@CodeSplitter 6 ай бұрын
And correctly followed that 3 steps
@amitvarotaria2683
@amitvarotaria2683 6 ай бұрын
@@CodeSplitter already followed all steps still not working Currently i had successfully deployed same project in render
@CodeSplitter
@CodeSplitter 6 ай бұрын
@@amitvarotaria2683 then it shouldn't throw such an error. BTW good to done with render.
@jimsvolt
@jimsvolt 4 ай бұрын
​@@amitvarotaria2683 same case with me on vercel im getting server timeout error
@HQYT1
@HQYT1 6 ай бұрын
i have no file sever.json in my node.js project
@HQYT1
@HQYT1 6 ай бұрын
i am using tyepscript so which will be the file?
@CodeSplitter
@CodeSplitter 6 ай бұрын
Look for either server.ts, index.ts or app.ts ts / tsx
@alessandrv
@alessandrv 4 ай бұрын
Great video! Will my backend be always accessible at all time?
@CodeSplitter
@CodeSplitter 4 ай бұрын
Yes
@reactworld2672
@reactworld2672 5 ай бұрын
Nice One
@CodeSplitter
@CodeSplitter 5 ай бұрын
Thank you
@houseofdragons9764
@houseofdragons9764 6 ай бұрын
Thank you!
@CodeSplitter
@CodeSplitter 6 ай бұрын
You're welcome!
@senazain
@senazain 4 ай бұрын
I get 404 file not found error
@CodeSplitter
@CodeSplitter 4 ай бұрын
Make sure to follow those three steps mentioned in video.
@sandeepmishra5753
@sandeepmishra5753 7 ай бұрын
Thank you.
@CodeSplitter
@CodeSplitter 6 ай бұрын
You're Welcome dear.
@ZabalaX
@ZabalaX 6 ай бұрын
says "vercel" is not a command
@CodeSplitter
@CodeSplitter 6 ай бұрын
Make sure you installed vercel
@CodeSplitter
@CodeSplitter 6 ай бұрын
npm install -g vercel
@ZabalaX
@ZabalaX 6 ай бұрын
@@CodeSplitter I already do that but keeps showing error
@CodeSplitter
@CodeSplitter 6 ай бұрын
@@ZabalaX make sure you are using CMD not PowerShell
@luisbustosmorales6897
@luisbustosmorales6897 4 ай бұрын
gracias
@CodeSplitter
@CodeSplitter 4 ай бұрын
Thank you!
@KazuhaSaya
@KazuhaSaya 6 ай бұрын
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
@CodeSplitter
@CodeSplitter 6 ай бұрын
Make use that you are using latest dependences.
@CodeSplitter
@CodeSplitter 6 ай бұрын
I never got this error
@CodeSplitter
@CodeSplitter 6 ай бұрын
Try delete project from vercel and uninstall deps and then run npm install/ yarn add
@CodeSplitter
@CodeSplitter 6 ай бұрын
And make sure to follow that 3 steps correctly
@dananjayachathuranga7113
@dananjayachathuranga7113 3 ай бұрын
is it free ?
@CodeSplitter
@CodeSplitter 3 ай бұрын
Yes
Deploy NodeJS Application on AWS - Amazon Web Services | NodeJS
19:51
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Host Node JS Application for FREE on Back4App || NodeJS FREE Hosting
10:48
How to use Multithreading with "worker threads" in Node.js?
19:34
Software Developer Diaries
Рет қаралды 80 М.
Deploy an Express API to Vercel
6:06
Coding Garden
Рет қаралды 84 М.
How To Deploy Node.js Server to Vercel | Node.js Tutorial
6:03
CodingGimmic
Рет қаралды 1,8 М.
How to structure a JS/TS monorepo | From Zero to Turbo - Part 1
11:58
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН