Skip to content

Commit 399767d

Browse files
Remove extra env. from fixed auth bearer
1 parent 54a6844 commit 399767d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/secrets-store/integrations/workers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export default {
158158
const APIkey = await env.MY_SECRET_NAME.get()
159159

160160
const response = await fetch("https://api.example.com/data", {
161-
headers: { "Authorization": `Bearer ${env.APIKey}` },
161+
headers: { "Authorization": `Bearer ${APIKey}` },
162162
});
163163

164164
if (!response.ok) {

0 commit comments

Comments
 (0)