diff --git a/.env.example b/.env.example index f3bd8f2..0f7a7c8 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d87f599..94225f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/jest.setup.ts b/jest.setup.ts index cc730eb..0ba1d13 100644 --- a/jest.setup.ts +++ b/jest.setup.ts @@ -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', () => ({