Skip to content

Commit

Permalink
Merge pull request #4 from coinbase/alissa.crane/cleanup
Browse files Browse the repository at this point in the history
chore: cleanup
  • Loading branch information
abcrane123 authored Oct 14, 2024
2 parents f640148 + 4463e02 commit 93dcced
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 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
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/coinbase/onchainkit/main/site/docs/public/logo/v0-27.png">
<img alt="OnchainKit logo vibes" src="https://raw.githubusercontent.com/coinbase/onchainkit/main/site/docs/public/logo/v0-27.png" width="auto">
</picture>
</p>

# Onchain Commerce Template

An Onchain Commerce Template build with [OnchainKit](https://onchainkit.xyz), and ready to be deployed to Vercel.
Expand All @@ -19,14 +12,14 @@ To ensure all components work seamlessly, set the following environment variable

You can find the API key on the [Coinbase Developer Portal's OnchainKit page](https://portal.cdp.coinbase.com/products/onchainkit). If you don't have an account, you will need to create one.

You can find your Coinbase Commerce API key after creating an account on [Coinbase Commerce](https://beta.commerce.coinbase.com/).
You can find your Coinbase Commerce API key after creating an account on [Coinbase Commerce](https://beta.commerce.coinbase.com/). If you don't have an account, you will need to create one.

```sh
# See https://portal.cdp.coinbase.com/products/onchainkit
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 = '';
export const TEMPLATE_LINK =
'https://github.com/coinbase/onchain-commerce-template';
export const TWITTER_LINK = 'https://x.com/Onchainkit';

0 comments on commit 93dcced

Please sign in to comment.