All language subtitles for 023 _getServerSideProps__ Behind The Scenes_Downloadly.ir_en

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
fa Persian Download
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 before,

I also always had a look at the production build

to really show you what Next.js does under the hood.

And I wanna do the same here for getServerSideProps.

So for this, I will add a console log statement here,

where I log server side code.

So that we see when this function runs

and now if we save that file,

and we again run npm run build

to build this for production,

we'll see when that code gets executed.

Now, here, if I make this a bit bigger

we see that we again

pre-generated a couple of pages and importantly

it's the same number of pages as we generated before.

It's still the starting page slash nothing

with the revalidation recognized,

it's then 404 page.

And it stands the product pages for P1,

P2, P3 and so on.

Now the user profile page was not pre-generated

as is in the end signaled by this Lambda symbol here.

The UID file also wasn't pre-generated.

So this Lambda symbol here

shows you that these pages are not pre-generated

but instead will be pre-rendered on the server only.

And that makes sense because in user profile

we're using get Server Side Props

and then UID we're using get Server Side Props.

That's why, those pages are not pre-generated

So, now with that

If we, again, start our server with npm start here

If you load, local host to three thousands,

we're on this page here,

but if I now visit the user dash profile page here

and we see Max,

if we go back to that terminal

where I started this production server with npm start,

we see server side code being logged here.

So this output here, we see that log here,

and that proves that this does code now executed,

but as shown before that this page was not pre-generated

With that, I'm going to get rid of that

console log statement

but I hope it's crystal clear when which code runs now.

And that is it for a get Server Side Props

and get static props

and also for get Static Paths.

I hope the differences are clear,

especially between static pre generation

and server side code

that only runs there.

I hope it's also clear why we use that.

Simply so that we can prepare data for our component

ahead of time or on the server

so that we can serve a finished page to the client,

that can offer a better user experience to our users

since they get the finished page

and all the content is there right from the start

but it can also help us with search engines

since search engine crawlers also see the finished page.

And with that, there's only one thing left

which I also want to take a look at in this module

and that's client site data fetching,

what that is, and when we still might need that.

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