Sink/docs/deployment/workers.md
ccbikai 5c558fb094 docs: update deployment and add MCP instructions
Simplifies deployment documentation by moving platform-specific instructions to separate files. Adds new section for MCP (Multi-Cloud Platform) integration with OpenAPI configuration example.

Key changes:
- Fixes shadcn-vue capitalization in tech stack
- Removes "Support for Other Deployment Platforms" from roadmap
- Adds documentation for MCP server configuration
- Reorganizes deployment instructions into platform-specific guides
2025-05-23 12:12:56 +08:00

1.7 KiB

Deployment on Cloudflare Workers

  1. Fork the repository to your GitHub account.

  2. Create a KV namespace (under Storage & Databases -> KV), and copy the namespace ID.

  3. Update the kv_namespaces ID in wrangler.jsonc with your own namespace ID.

  4. Create a project in Cloudflare Workers.

  5. Select the Sink repository and use the following build and deploy commands:

    • Build command: pnpm run build or npm run build
    • Deploy command: npx wrangler deploy
  6. Save and deploy the project.

  7. After deployment, go to Settings -> Variables and Secrets -> Add, and configure the following environment variables:

    • NUXT_SITE_TOKEN: Must be at least 8 characters long. This token grants access to your dashboard.
    • NUXT_CF_ACCOUNT_ID: Find your account ID.
    • NUXT_CF_API_TOKEN: Create a Cloudflare API token with at least Account.Account Analytics permission. See reference.
  8. Enable Analytics Engine. In Workers & Pages, go to Account details in the right panel, locate Analytics Engine, and click Set up to enable the free tier.

  9. Redeploy the project.

  10. To update your code, refer to the official GitHub documentation: Syncing a fork branch from the web UI.