From 1786960298bdea3e07badde5d31c0275b1433eda Mon Sep 17 00:00:00 2001 From: Alissa Crane Date: Mon, 14 Oct 2024 10:40:59 -0700 Subject: [PATCH 1/2] update readme --- README.md | 9 +-------- src/links.ts | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 94b14ff..478a81d 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,3 @@ -

- - - OnchainKit logo vibes - -

- # Onchain Commerce Template An Onchain Commerce Template build with [OnchainKit](https://onchainkit.xyz), and ready to be deployed to Vercel. @@ -19,7 +12,7 @@ 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 diff --git a/src/links.ts b/src/links.ts index b0e13ee..28a85dc 100644 --- a/src/links.ts +++ b/src/links.ts @@ -3,5 +3,5 @@ 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'; From 4463e02582f72277217be86a2cfcaf00c68c5845 Mon Sep 17 00:00:00 2001 From: Alissa Crane Date: Mon, 14 Oct 2024 14:14:10 -0700 Subject: [PATCH 2/2] update env var --- .env.local.example | 2 +- README.md | 2 +- src/config.ts | 2 +- src/links.ts | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.env.local.example b/.env.local.example index 74c2034..3b409d0 100644 --- a/.env.local.example +++ b/.env.local.example @@ -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= diff --git a/README.md b/README.md index 478a81d..212dd18 100644 --- a/README.md +++ b/README.md @@ -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" ```
diff --git a/src/config.ts b/src/config.ts index 6f9d3c5..6b5f271 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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' diff --git a/src/links.ts b/src/links.ts index 28a85dc..821bfde 100644 --- a/src/links.ts +++ b/src/links.ts @@ -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';