Тёмный

How to deploy express.js on Netlify 

Owen Conti
Подписаться 2 тыс.
Просмотров 131 тыс.
50% 1

How to deploy an Express application on Netlify using Netlify functions.
Example GitHub repository: github.com/owenconti/netlify-...
---
Thanks for watching! Make sure to leave a comment letting me know how you enjoyed the video!
Twitter: / owenconti
Website: owenconti.com
Projects:
RemoteAuth: remoteauth.com
Released: released.xyz

Опубликовано:

 

28 мар 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 182   
@dal344
@dal344 4 года назад
Thank you! After so many useless tutorials, your video was the quickest and easiest to follow!
@meiroverferst9482
@meiroverferst9482 4 года назад
YES!
@omscrx7490
@omscrx7490 3 года назад
Exactly. Thanks to this guy
@Michelobe
@Michelobe 3 года назад
Great video! this is exactly what I was looking for. I followed the video exactly and got it deployed in 10 minutes, thanks again!
@David-ky6ns
@David-ky6ns 4 года назад
You don't mince words bruv. Straight, to the point, and accurate. well done.
@owenconti
@owenconti 4 года назад
Thanks David
@jaytee4431
@jaytee4431 3 года назад
The only resource I could find that helped me deploy to Netlify. Thanks Owen!
@savvasstephanides2210
@savvasstephanides2210 3 года назад
Thank you Owen. This is the best tutorial I've found integrating Express with Netlify Functions. Thanks again!
@fadilnatakusumah195
@fadilnatakusumah195 3 года назад
Great tutorial, thank you so much. Been looking for this after so many unclear and failed tutorial. You're awesome
@vuelancer
@vuelancer 3 года назад
quick and well-defined video for netlify express. Great buddy!
@vishaldhawan420
@vishaldhawan420 5 лет назад
This is the simplest and the best tutorial for uploading NodeJS server to Netlify. Thanks dude!
@0000oooopppp
@0000oooopppp 4 года назад
Are these features free?
@owenconti
@owenconti 4 года назад
Yes, up until certain page view limits. Check out Netlify’s pricing page
@FredySandoval_123
@FredySandoval_123 3 года назад
straight to the point, thanks this saves a lot of time.
@peresola3885
@peresola3885 4 года назад
Thanks for the video! I struggled a bit for a while because I was getting error when running npm start. It was because I was not tabing the line functions = "functions". So pay attention to that if you struggle too.
@Rasmuskvejborg
@Rasmuskvejborg Месяц назад
Tried that, but the functions folder never appeared.
@thomaskjr-rasmussen8497
@thomaskjr-rasmussen8497 5 лет назад
This is super solid and well produced, cheers!
@alexanderp7521
@alexanderp7521 2 года назад
Why did you specify full path in "scripts" section like "./node_modules/.bin/netlify-lambda serve src"? It should be just "netlify-lambda serve src". Is there some specific reason for specifying full path?
@simon-olivierdesautels2619
@simon-olivierdesautels2619 2 года назад
Omg thank you
@zawwarahmed2336
@zawwarahmed2336 Год назад
Thank you very much
@randy-russ
@randy-russ 4 года назад
Solid tutorial, to the point, no bullshit. Thanks !
@omscrx7490
@omscrx7490 3 года назад
Wow brilliant. Been looking for some tutorial like this. Thanks so much
@courtneypike2867
@courtneypike2867 Год назад
Thank you so much! So helpful been stuck on this for a long time
@user-nl8gh2db7q
@user-nl8gh2db7q Год назад
Amazing video, clear & to the point. Thank you so much!
@libertad83y
@libertad83y 3 года назад
Excellent tuto, thanks, I have just this warning message when running but it still working nicely : "WARNING in ../node_modules/express/lib/view.js 81:13-25 Critical dependency: the request of a dependency is an expression @ ../node_modules/express/lib/application.js @ ../node_modules/express/lib/express.js @ ../node_modules/express/index.js @ ./api.js
@user-xb7wq5kp5l
@user-xb7wq5kp5l 4 года назад
that`s great. thanks you! quick, simple and useful
@LordNases
@LordNases 4 года назад
Thank you so much! Very simple and informative.
@michaellussem1777
@michaellussem1777 2 года назад
nice tutorial - thanks! Meanwhile the npm-script needs no longer the "./node_modules/.bin/" in front
@alkaribeats2764
@alkaribeats2764 Год назад
This helped!
@jonjon565
@jonjon565 5 месяцев назад
ty bro
@sudheer-suri
@sudheer-suri 2 года назад
Windows: if you are Getting 'NODE_ENV' is not recognized error , just do npm install "npm install -g win-node-env" and also replace "./node_modules/.bin/netlify-lambda" to netlify-lambda in package.json
@abhitabhkumarpandey1513
@abhitabhkumarpandey1513 Год назад
Thanks a lot🙏
@footgame756
@footgame756 2 месяца назад
thank you man
@zancheema.youtube
@zancheema.youtube 3 года назад
Thanks a lot man, this video really helped me. ❤️
@dagmawinadew2882
@dagmawinadew2882 7 месяцев назад
Hey brother how did the functions directory appear for you out of nowhere?
@pallavjadav
@pallavjadav 2 года назад
Thank you Owen... that helped a lot
@bondys-video-kucing
@bondys-video-kucing 4 месяца назад
superb brother Owen!
@refaatbitar
@refaatbitar 5 лет назад
Hey Owen, great video! but I tested your example with Ejs and it got me an error of "Cannot find module ejs" although it's included. I hope you can help me with that.
@DuyTran-ss4lu
@DuyTran-ss4lu 2 года назад
It's freaking great. Thanks so much
@panjigemilang2077
@panjigemilang2077 5 лет назад
Nice video sir! but I want to ask a question. I have a custom setting on my package.json for deploying a website on herokuapp : package.json "scripts": { "heroku-postbuild": "NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client" } ^ How can I run this on Netlify settings? because my folder structure didn't look like yours.
@vimuthsomarathna4820
@vimuthsomarathna4820 9 месяцев назад
thanks a lot a very useful tutorial
@vinibjazevich4059
@vinibjazevich4059 2 года назад
Hey Owen I keep getting cors error when trying to make a get request from my front end. I enabled cors in express but that doesn't do anything. I also added [[headers]] for = "/*" [headers.values] Access-Control-Allow-Origin = "*" to my netlify.toml file.
@dawid_dahl
@dawid_dahl 4 года назад
Awesome, thank you!
@owenconti
@owenconti 3 года назад
You're welcome!
@leanbuzetabernasconi
@leanbuzetabernasconi 2 года назад
Hello great video but I have this when I run npm start: start > ./node_modules/.bin/netlify-lambda serve src '.' is not recognized as an internal or external command, operable program or batch file.
@yavuzyigitoglu1287
@yavuzyigitoglu1287 2 года назад
same here
@lucasangelozzi9169
@lucasangelozzi9169 Год назад
You can try using 'npx netlify-lambda serve src'
@andrewv6445
@andrewv6445 Год назад
delete the './node_modules/.bin/' part
@MrLeddfoot36
@MrLeddfoot36 Год назад
Thanks@@andrewv6445. Using "netlify-lambda build src" fixed this. Thanks
@mble
@mble 4 года назад
3:40 Can I use npx instead?
@Sariimativa
@Sariimativa 4 года назад
im getting this problem : Can't resolve 'aws-sdk'. please help
@jerome6958
@jerome6958 Год назад
Great tutorial
@canvaapplessons1224
@canvaapplessons1224 3 года назад
What a lovely tutorial. Subscribed. Can you do a video on dockerization of Cordova/ionic app, like a build service to save time?
@satishkumar-hp4mu
@satishkumar-hp4mu 4 года назад
If i have done this in typescript, how can i convert it to use the what you have done?
@omerezra9481
@omerezra9481 Год назад
I get this error: Support for the experimental syntax 'jsx' isn't currently enabled it doesn't work on react?
@cankp53
@cankp53 2 года назад
thank you for sharing. I taking an error like "Function invocation failed: Error: Cannot find module 'C:\_DEV\_FLUTTER\my-app\server\functions\api'" Have you any idea about it ?
@vicky_s999
@vicky_s999 Год назад
But for me only files in that source directory is working, but my projects have multiple subdirectories. How to build files in those subdirectories ????
@someone11233
@someone11233 2 года назад
I am getting this error [ ModuleDependencyError: Can't import the named export 'Grammar' from non EcmaScript module (only default export is available)
@joyalg9174
@joyalg9174 3 года назад
Very nice and quick video! Looks like you missed covering functions folder. did you create api.js under functions folder?
@owenconti
@owenconti 3 года назад
It is automatically created for you by the netlify dev tool
@joyalg9174
@joyalg9174 3 года назад
@@owenconti ok got it. Thanks for the quick response!
@joyalg9174
@joyalg9174 3 года назад
I halva a mono repo with 2 project(angular & express). Is it possible to place netlify.toml file inside the express app instead of root? so that it wont affect my angular build.
@owenconti
@owenconti 3 года назад
Set the base directory for each project in the Netlify UI, and then put each netlify.toml in the base directories
@invinciblearmyvlogsshorts7911
@invinciblearmyvlogsshorts7911 8 месяцев назад
where can i keep my modals , in src or in the root folder
@cvbahir2284
@cvbahir2284 2 года назад
Hello dear its awesome video but one question why create functions directory and in which files have so litle bit confusion.
@siddheshbhosale3311
@siddheshbhosale3311 6 месяцев назад
What is present inside 'functions' folder?
@sankalpadas7888
@sankalpadas7888 Год назад
It is showing me this error: ModuleNotFoundError: Module not found: Error: Can't resolve 'mock-aws-s3' Someone pls help
@user-el3hb3uo5e
@user-el3hb3uo5e 5 месяцев назад
what is in folder "functions"? how did you created? and what is in that folder?
@ishraq95
@ishraq95 2 года назад
whats inside functions folder? there is no functions folder in your git repo..
@akashrajum3319
@akashrajum3319 4 года назад
Thanks a lot!
@ellisarmeanca2223
@ellisarmeanca2223 2 года назад
from where comes the function directory bro please im stuck ?
@xiaowang1672
@xiaowang1672 3 года назад
Thanks for the video. I deployed from my bitbucket. but It is failed. Deploy did not succeed: Deploy directory 'dist' does not exist. Could you let me know what's is the reason?
@dineshdhoni7470
@dineshdhoni7470 11 месяцев назад
Thank you so much
@yuraserdiuk9571
@yuraserdiuk9571 3 года назад
how work with express.static with netlify? I cannot get the correct URL for get the image. thanks for video
@yuvrajagarkar8942
@yuvrajagarkar8942 2 года назад
What is lambda , why can't we normally host like we do on heroku ?
@port8073
@port8073 4 года назад
its telling me. The loader cant find the module
@azimuddinahamed
@azimuddinahamed 3 года назад
Thanks king
@vemuyaswanth803
@vemuyaswanth803 2 года назад
I'm now hopping with happiness
@permanar_
@permanar_ 4 года назад
So basically we only need the netlify-lambda to make it work on netlify, right? Anyway, I have a question about the npm script, why did you call it directly from ./node-modules/ and not something like only netlify-lambda?
@owenconti
@owenconti 4 года назад
I didn't know you could call local node modules without specifying the path!
@askcode1330
@askcode1330 4 года назад
how to deploy ejs developed website on netlify.how to ejs with netlify.Please provide me the solution.Thank you
@goummoboris5194
@goummoboris5194 11 месяцев назад
you created the functions without showing.. please is there any reason for this ?
@repuestosgse4513
@repuestosgse4513 Год назад
Hello, my friend, you did a great job, I'm not a Hindi speaker but I understood almost everything you did, I'm trying to deploy my project on Cyclic but I have an error that says this "Error: ENOENT: no such file or directory, stat '/var/task/client/dist/index.html'", I used Vitejs to start the client folder and I don't know if this is the main problem.
@s4lmon134
@s4lmon134 4 года назад
What are the advantages to having an express app with a router separate to the front end if we are just using Netlify functions, wouldn't it make more sense just deploy your functions with your front-end in a "functions" folder which will create your endpoints based off whatever they are named automatically?
@owenconti
@owenconti 4 года назад
I don't disagree. I think one of the advantages could be that you are able to utilize 3rd party packages that are written around express. For instance, maybe there's an express middleware that you use to log HTTP requests as an example. The video explains *how* to do it, not necessarily that you should/the use cases for it.
@ethancrabb404
@ethancrabb404 3 года назад
I'm getting a "'.' is not recognized as an internal or external command, operable program or batch file." error when running npm start. Anyone know any fixes?
@yosepalmanza8075
@yosepalmanza8075 2 года назад
Did you fix it?
@simon-olivierdesautels2619
@simon-olivierdesautels2619 2 года назад
It should be just "netlify-lambda serve src".
@UIGems
@UIGems 3 года назад
Good one! Font is too small, you can change in next video
@malikbrahimi7504
@malikbrahimi7504 3 года назад
What about connecting a DB? Would you have to cloud host that elsewhere?
@owenconti
@owenconti 3 года назад
Yep you’d have to host elsewhere and it wouldn’t be the fastest because of the latency between netlify servers and wherever the DB is hosted
@billya5249
@billya5249 Год назад
Hi, what do I do if my index html file is located into a different folder like “Views”
@ronpb3943
@ronpb3943 Год назад
Have you solved this? In my case I don't even have an index.html file, I use a render engine, is there a way to deploy an app like that? (SSR)
@Roronoa1062
@Roronoa1062 Год назад
@@ronpb3943 Exactly my issue , trying to deploy an app that has ejs pages using render engine
@user-kb7gt2ko3h
@user-kb7gt2ko3h 7 месяцев назад
you didn't mention about functions folder
@JohnJohn-uh2qv
@JohnJohn-uh2qv 4 года назад
I lost at the last part, how did you deploy it to netlify, like uploaded the file, please show it.
@owenconti
@owenconti 4 года назад
Hi John, you have to setup a new project on Netlify's side and point the project at your git repository. I show my configuration details at 4:44 in the video. Netlify will automatically build and deploy the application whenever you push changes to the repository.
@kushaljain3870
@kushaljain3870 5 лет назад
What did you include in your functions directory? I dont know why you cut that part OR it was an error!
@owenconti
@owenconti 5 лет назад
You don't have to put anything in the functions directory. The netlify-lambda package automatically puts your compiled application from the src/ directory into the functions/ directory. It does this based on the netlify.toml configuration file.
@kushaljain3870
@kushaljain3870 5 лет назад
Oh See Media ohh ok. Thanks.
@hafiztemuri2408
@hafiztemuri2408 3 года назад
What your functions folder contain? Mine does not work until I manually add a folder 'functions/api' and copy all files in that folder. (I am using TS, so I have to copy all the JS generated files to functions/api, otherwise it does not work)
@owenconti
@owenconti 3 года назад
Do the generated files create a /functions dir?
@hafiztemuri2408
@hafiztemuri2408 3 года назад
@@owenconti when I run the serve command it does generate the folder and all the generated JS files in it. To get it working, I have to manually create functions/api folder and move all the files from functions to functions/api. Then it works.
@owenconti
@owenconti 3 года назад
@@hafiztemuri2408 I haven't used TS with this, but you can try changing the `functions` directory in netlify.toml to point to your compiled functions folder, something like: functions = "dist/functions"
@hafiztemuri2408
@hafiztemuri2408 3 года назад
@@owenconti I opened a github issue here, github.com/netlify/netlify-lambda/issues/350
@hafiztemuri2408
@hafiztemuri2408 3 года назад
@@owenconti actually this seem to worked, I changed script to `"start": "tsc --outDir dist/api && netlify-lambda serve dist/api",` and `functions = "dist"`. Thanks for the suggestion!!!
@syedsaad317
@syedsaad317 Год назад
'.' is not recognized as an internal or external command, operable program or batch file.
@Rasmuskvejborg
@Rasmuskvejborg Месяц назад
delete the './node_modules/.bin/' part
@Tomersss222
@Tomersss222 3 года назад
Who else checked his speed setting to make sure it is on 'Normal'
@owenconti
@owenconti 3 года назад
Ha, too fast?
@nathandesign98
@nathandesign98 3 года назад
How can I do this but with MongoDB? I’ve been struggling for quite some time
@maximk7816
@maximk7816 3 года назад
Yeah, I'm now trying to apply this with mongoose js.. and everything seems fine but doesn't work because of Mongo DB, throws an error _"ModuleNotFoundError: Module not found: Error: Can't resolve 'mongodb-client-encryption' in 'D:\JS_React\ToDoBook2 ode_modules\mongodb\lib'"_ UPDATE ..and I've just solved the problem by googling the error ))
@hugoperez1318
@hugoperez1318 4 года назад
Great video. My api works following these steps until I try to get information from a json database, I get a 500 Error message instead. Is this possible with netlify-lambda? It works locally but not on production.
@owenconti
@owenconti 4 года назад
Are there logs you can look at to debug? Are the DB credentials correct?
@cmilner
@cmilner 2 года назад
same issue for me - locally this works great, but as soon as it's deployed, I get a generic 500 error when trying to GET and POST. I'm using a simple file-based DB (diskdb)
@saiminpyaekyaw3057
@saiminpyaekyaw3057 Год назад
how did you create functions folder?
@owenconti
@owenconti Год назад
It’s generated for you when you build the project
@talbinyamin9507
@talbinyamin9507 4 года назад
Thanks for the great video!!! but i have a problem when i trying to fetch data from the API i rcving CORS err, could u oks explain how to fix it?
@adithyakamath8225
@adithyakamath8225 4 года назад
If running on Chrome, you can try adding the CORS Changer extension to your browser. Think it works for Firefox too. Why this error happens? -> I'm not sure.
@jeffpunts
@jeffpunts 4 года назад
because when you use serverless, your express app is run in a browser environment instead of a node environment. most modern browsers do not allow websites to call APIs hosted across different domains.
@rezadwiputra1416
@rezadwiputra1416 3 года назад
you can use cors package, by installing npm install cors, and use it in app like app.use(cors())
@lastmaj
@lastmaj 4 года назад
is this the only way to deploy an API written in node to netlify ? thanks though for the tutorial, it's the only viable thing I have found online
@owenconti
@owenconti 4 года назад
Probably not the only way to use node with netlify, no. You can just use a pure node index.js file.
@David-ky6ns
@David-ky6ns 4 года назад
Hello I actually have a question about Netlify, Are external API calls allowed on their free tier? Im trying to send mail with sendGrid when I make a POST request on a certain endpoint. The mail works with Node locally, Netlify local deploying but not Netlify hosting (on MYAPP.netlify.com) . please help. also the file is here github.com/Dada-Tech/portfolio-emailer-netlify/blob/master/src/api.js Thanks in advance !
@owenconti
@owenconti 4 года назад
Hi David, I am not sure if Netlify blocks outgoing requests. Do you see any errors in the logs?
@David-ky6ns
@David-ky6ns 4 года назад
​@@owenconti No, I dont see any errors. Maybe I'll just ask Netlify directly
@anusrim02
@anusrim02 2 года назад
Hi Owen, your videos really helpful, but I get an error on npm start, '.' is not recognized as an internal or external command. Can you help me on that. Thanks!
@calebpena3729
@calebpena3729 2 года назад
instead of specifying a path in the script try: "netlify-lambda serve src"
@kaagman49
@kaagman49 2 года назад
@@calebpena3729 Great answer i actually thought it had something to do with the script type because i write module type. I couldn't find an answer to this problem till i found your answer!
@Rasmuskvejborg
@Rasmuskvejborg Месяц назад
delete the './node_modules/.bin/' part
@maximk7816
@maximk7816 3 года назад
hey, buddy! 1 thanks for the tutorial - it works, 2 I have question: I've got a .env file in my project.. I cant share it Github right? So how do pass my variables to my app?? I mean in order to save it on Netlify..
@owenconti
@owenconti 3 года назад
You'll define them in the Netlify UI. Search Google for Netlify .env vars
@maximk7816
@maximk7816 3 года назад
@@owenconti thanks man, I've just successfully deployed my app!
@user-wf2pb2fq9s
@user-wf2pb2fq9s Год назад
I am not able to run locally. It is producing error > ./node_modules/.bin/netlify-lambda serve src '.' is not recognized as an internal or external command, operable program or batch file. Please help
@ErlandssonA
@ErlandssonA Год назад
Maybe this is a bit late, but here is the fix: Change: "./node_modules/.bin/netlify-lambda serve src" To: "netlify-lambda serve src"
@Roronoa1062
@Roronoa1062 Год назад
@@ErlandssonA Gives this error at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED'
@ErlandssonA
@ErlandssonA Год назад
@@Roronoa1062 Yeah I think all of this is outdated
@TOXICJUDGE704886
@TOXICJUDGE704886 Год назад
'.' is not recognized as an internal or external command, operable program or batch file. there is an error how to overcome this???
@Rasmuskvejborg
@Rasmuskvejborg Месяц назад
delete the './node_modules/.bin/' part
@victorjohn2545
@victorjohn2545 2 года назад
So you can really deploy a dynamic website for free? Holy sheeeesh
@SilvaOnTube
@SilvaOnTube 2 года назад
Well this was disappointing. I posted a question on the Netlify community forum. I edited the post to add what I thought might be a promising article, and my post was "temporarily" ??? removed. I hope this video will help me. I'll let y'all know.
@user-fk2rp8bm6t
@user-fk2rp8bm6t 2 года назад
cool
@aishwaryanr4072
@aishwaryanr4072 3 года назад
Could you demonstrate hosting on netlify
@owenconti
@owenconti 3 года назад
What kind of app are you looking to host on netlify?
@aishwaryanr4072
@aishwaryanr4072 3 года назад
@@owenconti nodejs express
@rimidelcavlis445
@rimidelcavlis445 3 года назад
Hi... does not works here... Page Not Found :( It works in localhost only.
@rimidelcavlis445
@rimidelcavlis445 3 года назад
Resolved. Tank you! Great tutorial..
@Tinwall72
@Tinwall72 5 лет назад
Hi Owen How does post work?
@code_react
@code_react 4 года назад
Well you video is awesome but i have monodb connected to my app. how can i resolve my problem with mongodb. its giving me an error "Error: Can't resolve 'mongodb-client-encryption'"
@owenconti
@owenconti 4 года назад
That sounds like the dependency is missing from package.json
@code_react
@code_react 4 года назад
@@owenconti Yep i forgot to install all the packages. thanks ;)
@code_react
@code_react 4 года назад
@@owenconti Hey there.. during deployment on Netlify. it gives me same error for modules missing. but i have pushed my updated code to github and still i am getting error. i have mongoose package name in my package.json file.
@owenconti
@owenconti 4 года назад
@@code_react Do you have the 'mongodb-client-encryption' package in your package.json too?
@code_react
@code_react 4 года назад
@@owenconti No but i installed that package. but after uploading my node express app to netlify. all of my routes were not working in postman. I have used mongodb.
@sanidhyagupta003
@sanidhyagupta003 10 месяцев назад
netlify-lambda is now depreciated in 2023.
@omgupta9015
@omgupta9015 3 года назад
Is netlify free just like heroku?
@owenconti
@owenconti 3 года назад
There is a free plan, yep
@symbianizemember6097
@symbianizemember6097 4 года назад
The title is how to deploy your express.js to netlify, but we cannot even see how to do that because it is already deployed in your netlify account. The tutorial is good but one of the important part is missing
@owenconti
@owenconti 4 года назад
You don't have to do anything, that's the point of Netlify. Connect your Git repo, use the settings that I show in the video and you'll be set.
@whitemsk8373
@whitemsk8373 Год назад
the functions directory just appeaed out of nowhere
@officialjosej9090
@officialjosej9090 Год назад
LMAO, Right
@david50x84
@david50x84 Год назад
Thanks for making the function folder off screen and never showing what's in it?
@owenconti
@owenconti Год назад
It’s the compiled output. I never actually created it, the scripts do. But I apologize that the edit suddenly shows it
@The_Nova_Glow
@The_Nova_Glow 4 года назад
bro, you completely skipped over the part where you created the 'functions' folder.
@owenconti
@owenconti 4 года назад
nah bro. just run `npm start` and it's created automatically for you.
@Abhijeetkumar-yh8cy
@Abhijeetkumar-yh8cy 4 года назад
Please make it more elaborated. I was not able to follow.
@owenconti
@owenconti 4 года назад
Which part did you get stuck on?
@Abhijeetkumar-yh8cy
@Abhijeetkumar-yh8cy 4 года назад
@@owenconti i got it after watching once again thank you very much.
@cameronadams4366
@cameronadams4366 Год назад
what if you don't want that string '.netlify/functions/api/' in your url ? What if you just want it to be /
@xicorplayz9293
@xicorplayz9293 11 месяцев назад
its saying > netlify-express@1.0.0 build > ./node_modules/.bin/netlify-lambda build src '.' is not recognized as an internal or external command, operable program or batch file.
@AngelGrigoriou
@AngelGrigoriou 8 месяцев назад
Try just "netlify-lambda build src" instead of having the whole path
@armanivers
@armanivers Год назад
Everything works fine, but I'm trying to get rid of the "/.netlify/functions/api" in the url and just shorten it to "/". So far I've learned there is the way of using redirects from netifly. Either in the netifly.toml file or with _redirects file. Both solutions don't work for me, nothing gets redirected. Anyone has any idea?
@Dubsteperzify
@Dubsteperzify Год назад
Did you find a solution?
@repuestosgse4513
@repuestosgse4513 Год назад
Hello, my friend, you did a great job, I'm not a Hindi speaker but I understood almost everything you did, I'm trying to deploy my project on Cyclic but I have an error that says this "Error: ENOENT: no such file or directory, stat '/var/task/client/dist/index.html'", I used Vitejs to start the client folder and I don't know if this is the main problem.
Далее
Learn Express JS In 35 Minutes
36:03
Просмотров 771 тыс.
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
7 better ways to create a React app
7:08
Просмотров 528 тыс.
Deploy Websites In Seconds With Netlify
22:06
Просмотров 225 тыс.
40 APIs Every Developer Should Use (in 12 minutes)
12:23
When Zig Outshines Rust | Prime Reacts
23:31
Просмотров 136 тыс.
The Best Way to Host & Deploy a React Application
11:00
Is HTMX a Joke??
32:15
Просмотров 18 тыс.
#16: Host REST API Live for Free 🔥
12:45
Просмотров 52 тыс.
How to create a serveless express app in netlify
11:47
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29