Deno is not defined #37
Answered
by
johnspurlock-skymethod
un-focused
asked this question in
Q&A
-
I believe since Denoflare runs in a browser environment (webworker), Deno is not defined but then how can I get the benefits of Deno in this package? |
Beta Was this translation helpful? Give feedback.
Answered by
johnspurlock-skymethod
Dec 8, 2022
Replies: 1 comment 3 replies
-
Denoflare is meant to author Cloudflare Workers. The |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
un-focused
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Denoflare is meant to author Cloudflare Workers. The
Deno
global is unavailable on Workers (no access to a file system, process environment etc), and thus not available in Denoflare either. In your case, just pass the api key as a worker text binding, it will then be available in thatenv
parameter tofetch
.