Skip to content

Commit

Permalink
docs: add info regarding runtimeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
manniL committed Feb 18, 2023
1 parent 837f894 commit 8835d2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/content/2.deploy/providers/cloudflare.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ description: 'Discover Cloudflare preset for Nitro!'
**Note:** This preset uses [service-worker syntax](https://developers.cloudflare.com/workers/learning/service-worker/) for deployment.
::

::alert{type="warning"}
**Warning:** Please be aware that `runtimeConfig` doesn't work with the Cloudflare preset (see [#272](https://github.com/unjs/nitro/issues/272) for more). As a workaround, you can use Cloudflare env variables as constants in the code.
::

Login to your [Cloudflare Workers](https://workers.cloudflare.com) account and obtain your `account_id` from the sidebar.

Create a `wrangler.toml` in your root directory:
Expand Down

0 comments on commit 8835d2c

Please sign in to comment.