Skip to content

Commit

Permalink
chore: Add OnchainKit CDP ProjectID to Playground (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcramer authored Sep 27, 2024
1 parent cdf1e4e commit b692363
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function OnchainProviders({ children }: { children: ReactNode }) {
<OnchainKitProvider
apiKey={ENVIRONMENT_VARIABLES[ENVIRONMENT.API_KEY]}
chain={base}
projectId={ENVIRONMENT_VARIABLES[ENVIRONMENT.PROJECT_ID]}
schemaId="0xf8b05c79f090979bf4a80270aba232dff11a10d9ca55c4f88de95317970f0de9"
>
{children}
Expand Down
2 changes: 2 additions & 0 deletions playground/nextjs-app-router/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const deployedContracts: Record<number, { click: Address }> = {
export const ENVIRONMENT = {
API_KEY: 'API_KEY',
ENVIRONMENT: 'ENVIRONMENT',
PROJECT_ID: 'PROJECT_ID',
} as const;

type EnvironmentKey = (typeof ENVIRONMENT)[keyof typeof ENVIRONMENT];
Expand All @@ -20,4 +21,5 @@ export const ENVIRONMENT_VARIABLES: Record<EnvironmentKey, string | undefined> =
{
[ENVIRONMENT.API_KEY]: process.env.NEXT_PUBLIC_OCK_API_KEY,
[ENVIRONMENT.ENVIRONMENT]: process.env.NEXT_PUBLIC_VERCEL_ENV,
[ENVIRONMENT.PROJECT_ID]: process.env.NEXT_PUBLIC_PROJECT_ID,
};

0 comments on commit b692363

Please sign in to comment.