1-7 Deployment of Docusaurus
In this short tutorial, we will learn how to deploy our Docusaurus website so that it is accessible to users on the Internet.
Edit docusaurus.config.js
File
Edit the following parameters:
docusaurus.config.js
const config = {
...
url: 'https://your-github-username.github.io',
baseUrl: '/your-repo/',
organizationName: 'your-github-username',
projectName: 'your-repo',
...
}
Deploy
In workspaces/username/my-website
, run the following command:
GIT_USER=your-github-username yarn deploy
warning
Please ensure that you have your GitHub credentials configured before deploying!
Once this process is finished, click on the link to see your website in action!