Deploy To Cloudflare Workers
Esta página aún no está disponible en tu idioma.
-
Deploy to Cloudflare Workers with the following:
Terminal window npm run cloudflare:deployIf you do not have an existing Cloudflare project, this command will help you set up one.
-
Create a copy of
wrangler.toml.example
aswrangler.toml
via the following command:Terminal window cp wrangler.toml.example wrangler.toml -
Next, set all the environment variables in
wrangler.toml
file from your local.env
file. -
Finally, deploy to Cloudflare Workers (again) with the following:
Terminal window npm run cloudflare:deploy -
Now that’s set up, you can deploy in future iterations only by executing the command once.