Frequently Asked Questions (FAQ)
If your issue isn't listed here, feel free to submit an Issue or Discussion on GitHub.
Cloudflare Quick Deploy Error: An unknown error occurred
This may be a GitHub/GitLab authorization issue:
Solution Steps:
- Visit https://github.com/settings/installations
- Find the
Cloudflare Workers and Pagesapp - Uninstall the app
- Re-authorize through the deploy button
Repository Sync
Q: How do I keep my Fork in sync with upstream?
- Open your forked repository homepage and click the Sync fork button in the top right.
- Or locally execute
git remote add upstream https://github.com/7Sageer/sublink-worker.git, then sync withgit fetch upstream && git merge upstream/main.
Access & Domains
Q: Why can't I access the generated subscription in my region?
*.workers.devdomains are often blocked in certain regions.- We recommend binding a custom domain in Cloudflare Pages/Workers and hosting DNS resolution on Cloudflare for flexible Rules/SSL configuration.
- If you can't bind a domain temporarily, use a proxy to access or deploy the subscription fetch logic on an overseas server.
KV Persistence
Q: How do I ensure KV persistence when deploying with Node/Docker?
- We recommend using the repository's built-in
docker-compose.yml: it will start Redis 7 alongside the worker and loadredis.confto enable RDB snapshots, with data written to theredis-datavolume. - Compose uses the GitHub Actions-pushed image
ghcr.io/7sageer/sublink-workerby default. You can change to a self-built image viaSUBLINK_WORKER_IMAGE. - If you prefer hosted KV, configure
KV_REST_API_URL&KV_REST_API_TOKENto directly connect to Upstash/Vercel KV. When both are unset, it falls back to in-memory storage. You can disable this withDISABLE_MEMORY_KV=true.
Other Recommendations
- Before saving base configs or short links, ensure the Worker is connected to persistent KV.
- If you replace default rule sets or add new languages, please update the documentation in your PR.
- When reporting issues, please include: deployment method, runtime logs, input samples, and Worker version for easier troubleshooting.