diff --git a/.env.local.default b/.env.local.default index 0142792..e7e73db 100644 --- a/.env.local.default +++ b/.env.local.default @@ -3,6 +3,6 @@ NEXT_PUBLIC_COINBASE_COMMERCE_API_KEY="COMMERCE_API_KEY_1234567890" NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=GA_TEST_1234567890 # See https://www.coinbase.com/developer-platform/products/base-node -NEXT_PUBLIC_CDP_API_KEY="CDP_API_KEY_1234567890" +NEXT_PUBLIC_ONCHAINKIT_API_KEY="CDP_API_KEY_1234567890" NEXT_PUBLIC_ENVIRONMENT=localhost diff --git a/.env.local.example b/.env.local.example index 3b409d0..c3bc523 100644 --- a/.env.local.example +++ b/.env.local.example @@ -3,7 +3,7 @@ NEXT_PUBLIC_COINBASE_COMMERCE_API_KEY="GET_FROM_COINBASE_COMMERCE_PLATFORM" NEXT_PUBLIC_GOOGLE_ANALYTICS_ID= # See https://www.coinbase.com/developer-platform/products/base-node -NEXT_PUBLIC_CDP_API_KEY="GET_FROM_COINBASE_DEVELOPER_PLATFORM" +NEXT_PUBLIC_ONCHAINKIT_API_KEY="GET_FROM_COINBASE_DEVELOPER_PLATFORM" # ~~~ NEXT_PUBLIC_ENVIRONMENT=localhost diff --git a/.env.test b/.env.test index 0142792..e7e73db 100644 --- a/.env.test +++ b/.env.test @@ -3,6 +3,6 @@ NEXT_PUBLIC_COINBASE_COMMERCE_API_KEY="COMMERCE_API_KEY_1234567890" NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=GA_TEST_1234567890 # See https://www.coinbase.com/developer-platform/products/base-node -NEXT_PUBLIC_CDP_API_KEY="CDP_API_KEY_1234567890" +NEXT_PUBLIC_ONCHAINKIT_API_KEY="CDP_API_KEY_1234567890" NEXT_PUBLIC_ENVIRONMENT=localhost diff --git a/src/components/OnchainProviders.tsx b/src/components/OnchainProviders.tsx index 6031345..de2114b 100644 --- a/src/components/OnchainProviders.tsx +++ b/src/components/OnchainProviders.tsx @@ -4,7 +4,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import type { ReactNode } from 'react'; import { base } from 'viem/chains'; import { WagmiProvider } from 'wagmi'; -import { NEXT_PUBLIC_CDP_API_KEY } from '../config'; +import { NEXT_PUBLIC_ONCHAINKIT_API_KEY } from '../config'; import { wagmiConfig } from '../wagmi'; type Props = { children: ReactNode }; @@ -16,7 +16,7 @@ function OnchainProviders({ children }: Props) { diff --git a/src/config.ts b/src/config.ts index 6b5f271..3f4323f 100644 --- a/src/config.ts +++ b/src/config.ts @@ -7,4 +7,5 @@ export const NEXT_PUBLIC_URL = ? 'http://localhost:3000' : 'https://onchain-commerce-template.vercel.app'; // Add your API KEY from the Coinbase Developer Portal -export const NEXT_PUBLIC_CDP_API_KEY = process.env.NEXT_PUBLIC_CDP_API_KEY; +export const NEXT_PUBLIC_ONCHAINKIT_API_KEY = + process.env.NEXT_PUBLIC_ONCHAINKIT_API_KEY;