All language subtitles for 010 ISR_ A Look Behind The Scenes_Downloadly.ir_en

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
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
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian Download
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,359 --> 00:00:05,390 Now, just as before, I also want to show you 2 00:00:05,390 --> 00:00:10,010 this revalidation in production so to say. 3 00:00:10,010 --> 00:00:13,750 So again, we're going to execute this built script here. 4 00:00:13,750 --> 00:00:16,131 Now that we did add revalidate 5 00:00:16,131 --> 00:00:19,290 to our getStaticProps return object. 6 00:00:19,290 --> 00:00:20,600 And keep in mind that we have 7 00:00:20,600 --> 00:00:23,570 this console log statement in here. 8 00:00:23,570 --> 00:00:26,620 So now if I run npm run build, 9 00:00:26,620 --> 00:00:30,500 again this entire project is prepared for production 10 00:00:30,500 --> 00:00:35,500 and next JS goes ahead and pre-renders pages. 11 00:00:35,540 --> 00:00:37,310 But it will now also do this 12 00:00:37,310 --> 00:00:40,410 Incremental Static Generation here. 13 00:00:40,410 --> 00:00:42,460 And if we scroll up a bit, 14 00:00:42,460 --> 00:00:44,030 what do we indeed see is that 15 00:00:44,030 --> 00:00:46,480 we're generating static pages here 16 00:00:46,480 --> 00:00:48,510 as part of the build process, 17 00:00:48,510 --> 00:00:51,080 and that was done before as well. 18 00:00:51,080 --> 00:00:52,630 We therefore see our 19 00:00:52,630 --> 00:00:55,960 regenerating console log statement here. 20 00:00:55,960 --> 00:00:59,700 But then, you also see that this option here 21 00:00:59,700 --> 00:01:01,680 is checked for ISR, 22 00:01:01,680 --> 00:01:05,010 which stands for Incremental Static Regeneration. 23 00:01:05,010 --> 00:01:08,480 And here we see that 10 seconds is locked in. 24 00:01:08,480 --> 00:01:11,970 So basically next JS recognized that we set this 25 00:01:11,970 --> 00:01:13,260 to 10 seconds here, 26 00:01:13,260 --> 00:01:17,570 and hence it is aware dead this page slash nothing. 27 00:01:17,570 --> 00:01:20,050 So the starting page, the index page 28 00:01:20,050 --> 00:01:23,350 should be regenerated every 10 seconds. 29 00:01:23,350 --> 00:01:25,150 That's what it's saying here. 30 00:01:25,150 --> 00:01:26,930 So it's aware of that. 31 00:01:26,930 --> 00:01:30,910 Now we can run our built website here locally 32 00:01:30,910 --> 00:01:33,480 on our machine with npm start. 33 00:01:33,480 --> 00:01:35,260 So not npm run dev, 34 00:01:35,260 --> 00:01:37,560 that would start the development server 35 00:01:37,560 --> 00:01:40,130 with better debugging support and so on. 36 00:01:40,130 --> 00:01:41,630 But with npm start 37 00:01:41,630 --> 00:01:45,320 we can run this build production ready site. 38 00:01:45,320 --> 00:01:47,410 So after npm run build, 39 00:01:47,410 --> 00:01:51,760 we can run npm start to view this production ready site 40 00:01:51,760 --> 00:01:54,050 on our local machine. 41 00:01:54,050 --> 00:01:56,910 So now I started is prepared page. 42 00:01:56,910 --> 00:02:01,730 And if we now visit local host 3000 in the browser, 43 00:02:01,730 --> 00:02:04,750 because that production demo's server here 44 00:02:04,750 --> 00:02:08,509 still runs on local host 3000, as you see here. 45 00:02:08,509 --> 00:02:13,230 If we visit that we see our product data here. 46 00:02:13,230 --> 00:02:15,200 So we see this pre-rendered page, 47 00:02:15,200 --> 00:02:17,540 which makes sense because it was pre-rendered 48 00:02:17,540 --> 00:02:19,313 as part of the build process. 49 00:02:20,200 --> 00:02:23,450 But if I now reload this page here, 50 00:02:23,450 --> 00:02:27,970 you see regenerating here in this log, in this terminal. 51 00:02:27,970 --> 00:02:30,330 And keep in mind that this terminal 52 00:02:30,330 --> 00:02:32,570 represents the server side, 53 00:02:32,570 --> 00:02:36,340 because here I started the server with npm start. 54 00:02:36,340 --> 00:02:39,960 So what we see here is output from the code 55 00:02:39,960 --> 00:02:42,250 that runs on the server. 56 00:02:42,250 --> 00:02:44,839 And since we see regenerating here, 57 00:02:44,839 --> 00:02:49,060 after we build our project with npm run build. 58 00:02:49,060 --> 00:02:54,060 This proves that indeed getStaticProps was executed again 59 00:02:54,170 --> 00:02:58,240 on the server which is running our production ready site. 60 00:02:58,240 --> 00:03:01,420 So exactly what I explained over and over again, 61 00:03:01,420 --> 00:03:04,670 over the last lectures, you see it in action here. 62 00:03:04,670 --> 00:03:09,010 This getStaticProps function did run again on the server, 63 00:03:09,010 --> 00:03:10,390 not in the browser 64 00:03:10,390 --> 00:03:12,340 and not during the build process, 65 00:03:12,340 --> 00:03:14,100 but on the server, 66 00:03:14,100 --> 00:03:16,860 after it was deployed so to say 67 00:03:16,860 --> 00:03:18,060 with npm start. 68 00:03:18,060 --> 00:03:21,680 And therefore we see this was revalidated. 69 00:03:21,680 --> 00:03:25,640 It was rebuilt because of our 10 seconds as setting. 70 00:03:25,640 --> 00:03:27,450 Now I talked more than 10 seconds. 71 00:03:27,450 --> 00:03:28,960 So if I reload this again, 72 00:03:28,960 --> 00:03:30,610 we again see regenerating. 73 00:03:30,610 --> 00:03:33,320 If I quickly reload again, a couple of times though 74 00:03:33,320 --> 00:03:36,290 we don't see 10 times regenerating here though, 75 00:03:36,290 --> 00:03:39,610 because I was below those 10 seconds. 76 00:03:39,610 --> 00:03:41,300 So I hope this all makes sense. 77 00:03:41,300 --> 00:03:43,673 And it's clear how that works. 5839

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