GitHub Repository for https://github.com/Open-souce-scripts/cf-nav
ask question and cloudflare : https://t.me/seagoing123
-
Clone this repository deploy in cloudflare pages.
-
Add
nodejs_compatat setting Compatibility flags
-
Copy
_worker.jscode from here. -
Alternatively, you can click the button below to deploy directly.
When running Wrangler locally, authentication to the Cloudflare API happens via the wrangler login command, which initiates an interactive authentication flow. Since CI/CD environments are non-interactive, Wrangler requires a Cloudflare API token and account ID to authenticate with the Cloudflare API.
To find your Cloudflare account ID, refer to Find account and zone IDs.
To create an API token to authenticate Wrangler in your CI job:
- Log in to the Cloudflare dashboard ↗.
- Select My Profile > API Tokens.
- Select Create Token > find Edit Cloudflare Workers > select Use Template.
- Customize your token name.
- Scope your token.
You will need to choose the account and zone resources that the generated API token will have access to. We recommend scoping these down as much as possible to limit the access of your token. For example, if you have access to three different Cloudflare accounts, you should restrict the generated API token to only the account on which you will be deploying a Worker.
.