Replies: 2 comments
-
Are you using wrangler v2 or v3? v3 is local by default, and as far as I can tell you shouldn't see the warning unless you're running the worker remotely: workers-sdk/packages/wrangler/src/dev.ts Lines 892 to 898 in 1b80dec |
Beta Was this translation helpful? Give feedback.
0 replies
-
This error means that you need to add a preview_id in your wrangler.toml for the env kv you’re trying to use locally. It can be the same or you could create a new kv, which wrangler will create in .wrangler/ folder locally. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say, I want to do integration tests in our ci env which internet access is limited. my worker has dependency on worker kv, but i don't want it to connect to any remote place given the limit.
I had tried the following in the toml file:
and started with this command
npx wrangler dev -e ci
got the following errorsI can't run this command because no internet access, and it also asked for opening an url with browser, which is not possible in an automated ci env.
from the official doc, it mentioned
so what does it really mean by
Wrangler will automatically create local versions of bindings found in wrangler.toml.
? how can I setup test this from my ci env?Beta Was this translation helpful? Give feedback.
All reactions