Comment on page
8️⃣ Deploying the project
Web development projects can rarely be considered complete and there is quite often additional work that needs doing even after deployment. It is also usual for web projects to change and evolve over time and/or require ongoing maintenance and further development.
However, for our current purposes we can at this point consider our application finished and ready to deploy.
We can create a production version of our project by running the following command from the root of your project:
> npx frontity build
This command will generate a
builddirectory containing both your (isomorphic) React app and your Frontity (Node.js) server. You can then run the following command to serve the site from your local Node.js installation:
> npx frontity serve
builddirectory can be deployed to any hosting that provides Node.js and can serve a Node.js app in order to make the site publicly available.
In the next section we will look at deploying our site to one particular hosting service, namely Vercel.