Skip to content

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

  1. Fork the Repository:

    • Visit the YuNest GitHub Repository.
    • Click Fork in the top right corner to synchronize the code to your own GitHub account.
  2. 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 YuNest repository you just forked.
  3. Configure Build Parameters:

    • Build Command: npm run build
    • Output Directory: dist
    • Node.js Version: It is recommended to choose 18 or higher.
  4. 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).
  5. 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.dev or .edgeone.site subdomain. 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.