Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:02,220 --> 00:00:05,000
Now, we did talk a lot about deployment
2
00:00:05,000 --> 00:00:05,910
and it matters,
3
00:00:05,910 --> 00:00:09,000
and we did talk a lot about this standard build
4
00:00:09,000 --> 00:00:10,960
with next build.
5
00:00:10,960 --> 00:00:14,110
And that works and is the standard build for a reason.
6
00:00:14,110 --> 00:00:16,420
It's easy to use and easy to deploy
7
00:00:16,420 --> 00:00:20,570
especially when using a service like Versal, as you saw.
8
00:00:20,570 --> 00:00:25,060
But I did also mention this alternative, next export.
9
00:00:25,060 --> 00:00:26,650
We can't run it like this,
10
00:00:26,650 --> 00:00:29,000
but we can go to the package.json file
11
00:00:29,000 --> 00:00:32,800
and add a script for that, like this.
12
00:00:32,800 --> 00:00:36,080
And here, I created a brand new basic project
13
00:00:36,080 --> 00:00:38,053
which you'll find attached now.
14
00:00:39,530 --> 00:00:42,840
It's a very basic project which only has one page
15
00:00:42,840 --> 00:00:44,930
which does nothing special.
16
00:00:44,930 --> 00:00:47,030
And whenever you have a project
17
00:00:47,030 --> 00:00:49,300
that needs no server side code,
18
00:00:49,300 --> 00:00:53,130
so no page revalidations, no fall backs,
19
00:00:53,130 --> 00:00:57,120
no server side props, no image optimization,
20
00:00:57,120 --> 00:00:59,530
that also requires server side code
21
00:00:59,530 --> 00:01:02,290
because it's done on-demand, on the fly.
22
00:01:02,290 --> 00:01:04,040
If you have such a project,
23
00:01:04,040 --> 00:01:06,240
so if you downloaded the attached project
24
00:01:06,240 --> 00:01:08,490
and run npm install in there,
25
00:01:08,490 --> 00:01:12,730
then you still need to run npm run build first,
26
00:01:12,730 --> 00:01:14,610
so this regular build command,
27
00:01:14,610 --> 00:01:17,173
you still need to do that first.
28
00:01:18,340 --> 00:01:20,130
But once that's finished,
29
00:01:20,130 --> 00:01:22,210
you can now run that export command
30
00:01:22,210 --> 00:01:24,880
which I added to the package.json file
31
00:01:24,880 --> 00:01:28,200
and this will now create such a static export.
32
00:01:28,200 --> 00:01:32,220
In this "out" folder you now have everything you need
33
00:01:32,220 --> 00:01:35,920
so you can take the content inside of that "out" folder
34
00:01:35,920 --> 00:01:39,380
and deploy that onto any static host.
35
00:01:39,380 --> 00:01:41,450
And you don't need anything else.
36
00:01:41,450 --> 00:01:44,320
You don't need a node server, nothing like that,
37
00:01:44,320 --> 00:01:47,310
but you have the limitations mentioned before.
38
00:01:47,310 --> 00:01:50,740
But that is an alternative for some pages,
39
00:01:50,740 --> 00:01:54,000
pages which don't use any server side features.
40
00:01:54,000 --> 00:01:57,810
And then you get a super slim static application
41
00:01:57,810 --> 00:01:59,250
which you can deploy
42
00:01:59,250 --> 00:02:02,500
and all you need then is a static host.
43
00:02:02,500 --> 00:02:03,460
So that is something
44
00:02:03,460 --> 00:02:06,140
which you probably won't use that often
45
00:02:06,140 --> 00:02:07,870
but which can be very useful
46
00:02:07,870 --> 00:02:10,479
for some applications and some projects
47
00:02:10,479 --> 00:02:12,100
and which are there for, of course,
48
00:02:12,100 --> 00:02:14,163
also wanted to cover here.
3657
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.