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 94b14ff..212dd18 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,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" ```
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 b0e13ee..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 = ''; +export const TEMPLATE_LINK = + 'https://github.com/coinbase/onchain-commerce-template'; export const TWITTER_LINK = 'https://x.com/Onchainkit';