All language subtitles for lesson9

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

now another benefit of next.js is

serverless functions

remember when i call next.jsp fullstack

framework

this is why

you can essentially run your node.js

code in the same codebase as your

reaccode

and it all lives inside the pages

directory

now anything inside the api folder you

will automatically

route to it right it automatically a

route is created for that because of the

next year's file system based routing

right but also anything under the api

folder also has a node server configured

already and it all comes out of the box

what's really cool is that you can do

all of this without any configuration

and your front end can easily talk to

your backend that is the serverless

function so in an example here hello is

actually a serverless function

now what exactly is the advantage here

why do we want to make sure that we want

our front-end to talk to our back-end

well let's take a look

if you're trying to go ahead and call a

foursquare api or an airtable api

or any other api

that has specific secret credentials

that we don't want to share with anyone

right

you don't want to store those

credentials on your client because any

malicious user can go ahead and access

it but instead you want to store those

credentials on the server

that api key should be on the server

that you should be hiding from your end

users

and this is possible because of

serverless functions

the front end can easily talk to your

backend and backend will be the place

where you will call these specific apis

but if you're wondering wait hold on a

second now that we know all the

capabilities of serverless function what

exactly are they

what does what do we mean by serverless

functions

well let's take a look at the diagram

here

as we make a request to a serverless

function called as hello essentially

what's going to happen is

it is going to go ahead and spin up a

new server just to make sure that it

fulfills that specific request and after

no activity it is going to go ahead and

shut down

so

the minute we call slash api hello it is

going to wake up the server start a

brand new node server it is going to

execute the code inside the hello api

and then go ahead and

execute it successfully

and then shut down the server

so this is why it is called a serverless

function you only need the server to

perform that specific task and if there

is no activity it is going to go ahead

and shut it down

so this is the power of serverless

functions

and all of this is already configured in

xjs you don't need to do any additional

setup for it all we need to do is go

ahead and create a new file under the

api folder

serverless functions are really powerful

because you don't need to keep your

server running all the time

and to learn more about serverless

functions because there is a lot you

have to check out the course and learn

more about the serverless functions

there we will be using serverless

functions throughout this course and

diving into all the nitty-gritty details

about serverless functions and i'm

really excited for that because they are

definitely my favorite

so this is why next yes is known as the

react framework for production because

in order to make a production ready site

you need to have all the necessary

powerful tools to be able to do that

and we won't just have any side we would

have the best performance site out there

and thanks to nexjs as we are able to go

ahead and build front end as well as

back end of your app in the same code

base

and also we get seo we get performance

and we also get a lot of

things that makes the life of developers

so much easier

all right so now that we have learned

about serverless functions

let's take a look at why nextgs is

popular

and if we have any doubts yet because

we now know why it is popular right so

let's take a look

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.