In this section, you will deploy the project to the Pages platform via importing a Git repository.
Pages currently supports access from Git providers such as GitHub, GitLab, Bitbucket, and Gitee. The following uses GitHub access method as an example:
Connect Git Repo
The first step in deploying your web application is to connect your Git repository. EdgeOne Pages seamlessly integrates with version control platforms, enabling smooth synchronization between your development workflow and the deployment process.
To connect your repository:
Registration/Login: You can use multiple methods to quickly register and log in to the Tencent Cloud console.
Get started: On your first visit, click Enable Now on the page.
Bind GitHub: On the console page, click Github to connect your warehouse.
Authorize GitHub: Grant EdgeOne permission to access your repository.
Select warehouse: Select the warehouse you want to deploy or authorize all.
Custom Build
Once your repository is connected, you'll need to configure your build settings. This step is crucial for ensuring that your project is compiled and prepared correctly for deployment.
Select warehouse: Select the warehouse you want to deploy.
Enter build command: Input your build command. If unsure, please check the scripts section in package.json.
Select acceleration region: Different regions determine node resources assigned to the project and whether ICP Filing Registration is required when adding custom domains. For more information, see Domain Management - Acceleration Region.
Global Deployment
With your repository connected and build configuration filled in, you're ready to deploy your application globally.
To initiate deployment:
Review your settings to ensure everything is correct.
Click Start Deployment.
EdgeOne Pages will auto-build your project and deploy it to the Global Edge Network.
The following figure indicates deployment success:
When new submissions are pushed to the deployment branch, EdgeOne will automatically pull and deploy the latest submission.
Through these steps, you can quickly and easily deploy Web applications with EdgeOne Pages' powerful Global Edge Network and simplified workflow.
How to Handle Exceptions
If the deployed version is different from the repository, please ensure to pull the latest version.
If you have other issues, please contact us through the feedback channel in the bottom-right corner.