Skip to content

Commit

Permalink
update env var
Browse files Browse the repository at this point in the history
  • Loading branch information
alissacrane-cb committed Oct 14, 2024
1 parent 1786960 commit 4463e02
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.local.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
COINBASE_COMMERCE_API_KEY="GET_FROM_COINBASE_COMMERCE_PLATFORM"
NEXT_PUBLIC_COINBASE_COMMERCE_API_KEY="GET_FROM_COINBASE_COMMERCE_PLATFORM"
# ~~~
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You can find your Coinbase Commerce API key after creating an account on [Coinba
NEXT_PUBLIC_CDP_API_KEY="GET_FROM_COINBASE_DEVELOPER_PLATFORM"

# See https://beta.commerce.coinbase.com/
COINBASE_COMMERCE_API_KEY="GET_FROM_COINBASE_COMMERCE"
NEXT_PUBLIC_COINBASE_COMMERCE_API_KEY="GET_FROM_COINBASE_COMMERCE"
```
<br />

Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Add your API key from Coinbase Commerce
export const COINBASE_COMMERCE_API_KEY =
process.env.COINBASE_COMMERCE_API_KEY || '';
process.env.NEXT_PUBLIC_COINBASE_COMMERCE_API_KEY || '';
// use NODE_ENV to not have to change config based on where it's deployed
export const NEXT_PUBLIC_URL =
process.env.NODE_ENV === 'development'
Expand Down
3 changes: 2 additions & 1 deletion src/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ export const FIGMA_LINK =
'https://www.figma.com/community/file/1370194397345450683/onchainkit';
export const GITHUB_LINK = 'https://github.com/coinbase/onchainkit';
export const ONCHAINKIT_LINK = 'https://onchainkit.xyz';
export const TEMPLATE_LINK = 'https://github.com/coinbase/onchain-commerce-template';
export const TEMPLATE_LINK =
'https://github.com/coinbase/onchain-commerce-template';
export const TWITTER_LINK = 'https://x.com/Onchainkit';

0 comments on commit 4463e02

Please sign in to comment.