Deploy Express Application using Netlify for Free - Serverless Functions | 2024 UPDATE

  Рет қаралды 4,572

The Dev Corner

The Dev Corner

Күн бұрын

Пікірлер: 21
@kadirbozkurt2412
@kadirbozkurt2412 3 ай бұрын
I build my react/node project. If I choose my dist directory as publish directory while deploying, it doesnt call the functions on front end. If I don't choose directory for publish, I see 404 error of netlify. Any solution for that?
@sanketmane5838
@sanketmane5838 2 ай бұрын
netlify-lamda has already been deprecated. How to do it without netlity-lamda ?
@danielmayo4315
@danielmayo4315 4 ай бұрын
the video is great just zoom in a little
@thedevcorners
@thedevcorners 4 ай бұрын
Appreciate for the input!
@EsHbAnBaHaDuR
@EsHbAnBaHaDuR Ай бұрын
very nice. My routes are in /Routes/courseRoutes.js file so how can i access them?
@RajeshTechForge
@RajeshTechForge 2 ай бұрын
Good Tutoriall but too annoying to see the code. 1. Just zoom In the editor, 2. Add a soft bg music.
@thedevcorners
@thedevcorners 2 ай бұрын
Appreciate it man!
@ShikimoriKuruma
@ShikimoriKuruma 5 ай бұрын
wow thanks bro
@harshasuraweera
@harshasuraweera 4 ай бұрын
Great tutorial... By the way I have a question, is that route prefix "/.netlify/functions/" a must? PS: Found that it can be solved by adding a redirect rule to netlify.toml like this [[redirects]] force = true from = "/api/*" status = 200 to = "/.netlify/functions/api/:splat"
@thedevcorners
@thedevcorners 4 ай бұрын
Yes, it's a must! Thanks for the addition!
@harshasuraweera
@harshasuraweera 4 ай бұрын
@@thedevcorners np.. seems above rule can only be used with express apps.
@girish_bora0
@girish_bora0 Ай бұрын
@@thedevcorners Is there a way to deploy from github?
@juanpasten6077
@juanpasten6077 4 ай бұрын
It doesnt' work for me but thanks!
@thedevcorners
@thedevcorners 4 ай бұрын
Can you give the details why it didn't work?
@juanpasten6077
@juanpasten6077 4 ай бұрын
@@thedevcorners My men! It ended working!! Two things: my gratitude to you for you willing to help. With that I was going to make a good explanation to get help by you and, in the process, I fix it. Now I was trying to make a good explanation on why it was break and I get with this: ▬ If you use a template string plus some variables, it would not work. I had something like this « const ROUTES = { MOVIES: `movies`, HOME: `/` } app.get(`/.netlify/functions/app/${ROUTES.MOVIES}/:id`, fn) » That's going to throw an error. This is how I fix that: « const PREFIX_ROUTES = "/.netlify/functions/app" const ROUTES = { MOVIES: `${PREFIX_ROUTES}/movies`, HOME: `${PREFIX_ROUTES}/` } app.get(ROUTES.HOME, fn) app.get(`${ROUTES.MOVIES}`, fn) app.get(`${ROUTES.MOVIES}/:id`, fn) » Thanks for all =)!
@juanpasten6077
@juanpasten6077 4 ай бұрын
@@thedevcorners I though I made a reply but it was not the case. The problem was the use of template strings, I had something like this: `/.netlify/functions/app/${ROUTES.MOVIES}/:id`. That doesn't work for I don't know which reason. But if I extract the prefix into other variable it ended working. Like this: «const ROUTES_PREFIX = "/.netlify/functions/app"; const ROUTES = {MOVIES: `${ROUTES_PREFIX}/movies`}; app.get(`${ROUTES.MOVIES}/:id`, fn)». So, thanks so much for your willing to help ♥
@Bollyspeedup
@Bollyspeedup 4 ай бұрын
I have actually already made the project in github so can you help me with that
@thedevcorners
@thedevcorners 4 ай бұрын
Glad to hear that! have you followed the instruction in the video?
@Bollyspeedup
@Bollyspeedup 4 ай бұрын
@@thedevcorners I already have made the repo and project before
@muratyonev6000
@muratyonev6000 3 ай бұрын
It does not work. waste of time
@thedevcorners
@thedevcorners 3 ай бұрын
Thank you :) at least it works for me.
Host Node JS Application for FREE on Back4App || NodeJS FREE Hosting
10:48
Netlify Serverless Functions with Netlify Dev
12:17
James Q Quick
Рет қаралды 29 М.
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 64 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 1,7 МЛН
Deploy Express.js on Vercel
3:04
this.stephie
Рет қаралды 7 М.
I HACKED ShadCN to Create Insane React Templates and Installers
14:59
Jack Herrington
Рет қаралды 16 М.
Should you use a VPS instead of Vercel, Netlify & co?
13:14
Maximilian Schwarzmüller
Рет қаралды 10 М.
Getting started with Netlify Edge Functions
9:12
Netlify
Рет қаралды 9 М.
Deploying a backend on Vercel (APIs and Functions)
4:14
Vercel
Рет қаралды 63 М.
The Home Server I've Been Wanting
18:14
Hardware Haven
Рет қаралды 51 М.
Why I'd never host my apps on a VPS
13:43
Web Dev Cody
Рет қаралды 54 М.
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15