Now, so far, we have installed Gatsby and generated a project and we have managed to start the local
development there, but what we actually have locally is a bit different from what we want to send in
production.
And generally every tool has like a build step, which is designed for production.
So something that a piece of code needs to be compiled, or in this case, for this very simple website,
there is some JavaScript that needs to be generated.
Resources need to be like minified so that they don't like so much space.
So a lot of the steps that you would not usually use when you're developing the application because
they take a bit of time, you will have them in a build step, which will create production, really
build where everything is nice and clean.
And Gatsby has a command for that is called build.
So if I called Gatsby built, it will generate a new folder and inside there will be like the website
that I can deploy somewhere.
So let's write out.
And now the bill is ready and you will see here that some of the last steps that were executed here
is like building production, JavaScript and Cyesis bundles.
So where this is compressed into one file and everything is included there.
The same goes for JavaScript.
It's compiled and included only one file.
Static pages have been generated and so on.
So let's go ahead and inspect the built folder.
And actually, Gatsby doesn't call the the build folder build it calls it public.
And it makes sense because all the files that are inside that folder are designed to be public.
So let's switch to public and see what's inside.
You have like an index HTML page and you have some JavaScript and everything that is needed in order
to work with the website.
And this is exactly this is or artifact for this website.
This is what we want to take from our build process and save it somewhere so that we can deploy it to
a server, for example.
And now we have to write this process locally.
We now have this build and the idea would be to automate this depth, to use Gottleib S.I in order to
execute this.