Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcramer committed Dec 10, 2024
1 parent c30f14c commit e872d55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
17 changes: 0 additions & 17 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
// Add this debugging at the top of the file
console.log('=== Environment Variables Debug ===');
console.log({
commerceKey: process.env.COINBASE_COMMERCE_API_KEY,
onchainKitKey: process.env.NEXT_PUBLIC_ONCHAINKIT_API_KEY,
nodeEnv: process.env.NODE_ENV,
});

// Add your API key from Coinbase Commerce
export const COINBASE_COMMERCE_API_KEY =
process.env.COINBASE_COMMERCE_API_KEY || '';
Expand All @@ -17,12 +9,3 @@ export const NEXT_PUBLIC_URL =
// Add your API KEY from the Coinbase Developer Portal
export const NEXT_PUBLIC_ONCHAINKIT_API_KEY =
process.env.NEXT_PUBLIC_ONCHAINKIT_API_KEY || '';

// Add validation
if (!NEXT_PUBLIC_ONCHAINKIT_API_KEY) {
console.warn('Missing NEXT_PUBLIC_ONCHAINKIT_API_KEY environment variable');
}

if (!COINBASE_COMMERCE_API_KEY) {
console.warn('Missing COINBASE_COMMERCE_API_KEY environment variable');
}
2 changes: 1 addition & 1 deletion src/hooks/useCreateCharge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const useCreateCharge = () => {
const { id } = await res.json();
return id;
} catch (error) {
console.error('Error in createCharge:', error);
console.error('Error creating charge:', error);
throw error;
}
}, []);
Expand Down

0 comments on commit e872d55

Please sign in to comment.