Commit graph

8 commits

Author SHA1 Message Date
Derek Slenk
b03225cf76 Configure Amplify Gen 2 backend with secrets
- Add secret definition to backend.ts using proper Amplify Gen 2 syntax
- Update amplify.yml to include backend build phase
- This should properly expose secrets as environment variables

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 15:51:57 -04:00
Derek Slenk
21ac70c502 Fix YAML syntax error in amplify.yml
- Remove colon from echo command that was causing YAML parsing error
- Commands should now execute properly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 15:42:54 -04:00
Derek Slenk
65601e5ad6 Write YOUTUBE_API_KEY to .env.production file
- Echo the API key value to debug if it's actually set
- Write to .env.production file for Next.js to read
- Display contents of .env.production to verify

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 15:40:06 -04:00
Derek Slenk
06a0051c51 Fix Amplify environment variable access
- Simplified amplify.yml to export env var during build
- Updated both gallery and dadvocate pages to check multiple env var names
- Added debugging to show available env vars
- Added publicRuntimeConfig and serverRuntimeConfig to next.config.ts
- Created config helper in lib/config.ts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 15:33:58 -04:00
Derek Slenk
2de4fb5f69 Enhanced Amplify secret detection
- Check multiple possible locations for the API key
- Add debugging to find available environment variables
- Try secrets object, AMPLIFY_ prefix, and standard env var
- Create placeholder .env.production file

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 15:24:46 -04:00
Derek Slenk
627da2c7ec Debug and fix Amplify environment variable access
- Add debugging commands to check environment variables
- Improve .env.production file creation logic
- Remove env config from next.config.ts to avoid conflicts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 15:17:35 -04:00
Derek Slenk
3a035e9257 Update amplify.yml to inject environment variable
- Create .env.production file with YOUTUBE_API_KEY during build
- This ensures Next.js can access the environment variable

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 15:12:52 -04:00
Derek Slenk
40c2f0c263 Fix Amplify environment variable configuration
- Add amplify.yml for proper build configuration
- Update next.config.ts to expose YOUTUBE_API_KEY env var
- This should fix the issue with secrets not being available in production

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 14:56:31 -04:00