Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap CF_API_TOKEN with CLOUDFLARE_API_TOKEN #204

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Conversation

jgentes
Copy link
Contributor

@jgentes jgentes commented Oct 30, 2023

If the token isn't specified, wrangler throws this error, indicating the CLOUDFLARE_API_TOKEN should be set, so it's worth being consistent so folks can copy/paste the examples and have it work out of the box:

In a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable for wrangler to work.

If the token isn't specified, wrangler throws this error, indicating the CLOUDFLARE_API_TOKEN should be set, so it's worth being consistent so folks can copy/paste the examples and have it work out of the box:
```
In a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable for wrangler to work.
```
@jgentes jgentes requested a review from a team as a code owner October 30, 2023 00:34
@jacobbednarz
Copy link
Member

lgtm - we should also do the same update for CLOUDFLARE_ACCOUNT_ID (previously CF_ACCOUNT_ID).

Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello James!!

@jgentes
Copy link
Contributor Author

jgentes commented Oct 30, 2023

Hey Pete! :) I've been promoting Workers within Procore - I even gave a demo of using D1 & KV with Pages + Functions to show off how simple it is to create stateful applications. Fun stuff, keep up the great work!

@1000hz
Copy link
Contributor

1000hz commented Oct 30, 2023

This looks good to me, though @jgentes would you mind updating CF_ACCOUNT_ID as @jacobbednarz suggested? Once that's done I'll go ahead and merge.

@jgentes
Copy link
Contributor Author

jgentes commented Oct 30, 2023

done!

@1000hz 1000hz merged commit 9554b35 into cloudflare:main Oct 30, 2023
1 check passed
@1000hz
Copy link
Contributor

1000hz commented Oct 30, 2023

Thanks @jgentes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants