Deploy the VitePress JavaScript Boilerplate
Deploy a static VitePress project written in JavaScript to Azion. The template creates a GitHub repository, an application, and a domain.
You can deploy a static VitePress project to Azion from the VitePress JavaScript Boilerplate template in Azion Console. To create an application without a template, refer to Applications quickstart.
VitePress is a static site generator built on top of Vite and Vue.js for creating documentation websites. It includes a Markdown-based content system, a built-in theming system, and fast hot module replacement. The template is written in JavaScript and uses VitePress 1.3.0.
The deployment creates a GitHub repository for your project, an application that serves it, and a domain to reach it. The application uses Application Accelerator, and its usage can generate costs. For more information, refer to Pricing.
Prerequisites
- An Azion account. To create one, refer to Create an account.
- Access to Azion Console. To sign in, refer to Access Azion Console.
- A GitHub account. Azion connects to it and creates the project’s repository there.
Deploy the template
The VitePress JavaScript Boilerplate opens as a configuration form in Azion Console, and an asterisk marks each mandatory field.
To deploy the template:
Go to VitePress JavaScript Boilerplate in Azion Console. The configuration form opens.
A window opens to confirm the installation of the Azion GitHub App, which connects your GitHub account with Azion. In that window, define the app’s permissions and repository access.
Select the Git Scope to work with.
Enter a unique name that you can remember. The storage bucket that the template creates takes the same name. If the name is already in use, the platform returns an error message.
Select Deploy.
A window shows the deployment logs while it runs. When the deployment completes, the page shows the application’s details, a browser link to it, and options to continue.
The link can take a few minutes to start serving the application, while its configuration propagates across Azion’s distributed infrastructure. If the page does not load, wait a few minutes and open the link again.
Update the project
Every push to the main branch of the GitHub repository that the VitePress JavaScript Boilerplate creates deploys automatically.
To update the deployed project, push your changes to the main branch of that repository. Azion deploys them, and the application serves the new version.
Manage the application
The settings that the VitePress JavaScript Boilerplate applies may not fit your application. You can change any of them at any time from Azion Console.
To open the application’s settings:
Access Azion Console > Applications. The list shows every application you created, in alphabetical order.
To find it in a long list, search by its name. The search filters the list by application name only.
The application opens on a page that holds every setting you can configure. For more information, refer to Main Settings, Rules Engine for Applications, and Device Groups.
Add a custom domain
The VitePress JavaScript Boilerplate deployment assigns the application a workload domain in the format xxxxxxxxxx.map.azionedge.net, which a browser can open. To serve the application from a domain you own, add a custom domain. To add one, refer to Add a custom domain to a workload. For more information, refer to Domains.