EdgeOne Pages Deployment
For users in mainland China, Tencent EdgeOne Pages provides a blazing-fast static page hosting experience and is the preferred choice for domestic network environments.
Deployment Steps
Fork the Repository:
- Visit the YuNest GitHub Repository.
- Click Fork in the top right corner to synchronize the code to your own GitHub account.
Create a Pages Project:
- Log in to the Tencent EdgeOne Console.
- Click "New Project" and select "Import from Git Repository".
- Authorize GitHub and select the
YuNestrepository you just forked.
Configure Build Parameters:
- Build Command:
npm run build - Output Directory:
dist - Node.js Version: It is recommended to choose
18or higher.
- Build Command:
Set Environment Variables:
- In the "Environment Variables" section of the deployment settings, add the following necessary parameters:
- VITE_ADMIN_PASSWORD: Set your admin panel login password (Required).
- VITE_GITHUB_TOKEN: Your GitHub Personal Access Token (Optional, used for automatic synchronization).
- VITE_GITHUB_REPO: Your data synchronization repository name (Optional, e.g.,
username/repo).
- In the "Environment Variables" section of the deployment settings, add the following necessary parameters:
Deploy and Access:
- Click "Save and Deploy" and wait for the build to complete.
- After a successful deployment, Tencent Cloud will assign you a
.pages.devor.edgeone.sitesubdomain. You can also bind your own custom domain as needed.
Advantages
- Fast Loading: Features extensive domestic nodes for extremely fast access speeds.
- Easy Configuration: The logic is completely consistent with Cloudflare, making it a low-cost alternative.