Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Google Gemini API Key (Required)
# Get your API key from https://makersuite.google.com/app/apikey
GOOGLE_GENERATIVE_AI_API_KEY=your_api_key_here
GEMINI_API_KEY=your_api_key_here

# Unsplash API - Get your free API key at https://unsplash.com/developers
# Required for AI Theme Generator background images (optional)
NEXT_PUBLIC_UNSPLASH_ACCESS_KEY=your_unsplash_access_key_here
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: npm run build
env:
# Provide API key if available, otherwise use dummy for build
GOOGLE_GENAI_API_KEY: ${{ secrets.GOOGLE_GENAI_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY || 'ci-build-placeholder' }}

# ✅ Step 8: Upload test coverage report
- name: 📊 Upload coverage report
Expand Down
2 changes: 1 addition & 1 deletion jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@testing-library/jest-dom';

// Mock environment variables
process.env.GOOGLE_GENAI_API_KEY = 'test-api-key-mock';
process.env.GEMINI_API_KEY = 'test-api-key-mock';

// Mock next/navigation
jest.mock('next/navigation', () => ({
Expand Down