本页还没有译文
本页 4 段还没译成日本語,下面显示的是英文原文。Secrets
还没翻译译自英文(developers.cloudflare.com)本页 4 段都还没译
Secrets are typically used for storing sensitive information such as API keys and auth tokens. For deployed Workers, they are set via the dashboard or Wrangler CLI.
In local development, secrets can be provided to your Worker by using a .dev.vars file.
If you are using Cloudflare Environments then the relevant .dev.vars file will be selected.
For example, CLOUDFLARE_ENV=staging vite dev will load .dev.vars.staging if it exists and fall back to .dev.vars.
Note
The vite build command copies the relevant .dev.vars file to the output directory.
This is only used when running vite preview and is not deployed with your Worker.
AI 翻译查看英文原文