Commit graph

14 commits

Author SHA1 Message Date
Derek Slenk
f4b9516f9c
Update amplify.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-27 19:21:15 -04:00
Derek Slenk
c39bbe9f60 Fix Node.js version compatibility and improve documentation
- Update amplify.yml to use Node.js 20 to resolve engine compatibility warnings
- Add .nvmrc file to ensure consistent Node.js version across environments
- Replace basic README with comprehensive project documentation including features, setup instructions, and deployment options

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 18:31:16 -04:00
Derek Slenk
09b97c97db Add secret retrieval from Amplify secret stores
- Try AWS Secrets Manager first with the Amplify secret path
- Fall back to SSM Parameter Store if Secrets Manager fails
- Fall back to environment variable if both fail
- Write retrieved secret to .env.production for Next.js to use
- Log the process but hide the actual secret value

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 16:21:03 -04:00
Derek Slenk
33d4a1119a Simplify to just use environment variables
- Remove unnecessary Lambda function and API route
- Remove backend deployment from amplify.yml
- Just use process.env.YOUTUBE_API_KEY directly
- Keep it simple - no need for complex secret management

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 16:19:54 -04:00
Derek Slenk
2524e0cb27 Implement proper Amplify Gen 2 secret management
- Create Lambda function with secret environment variable
- Add YouTube API function to backend configuration
- Create Next.js API route to handle YouTube requests
- Update gallery page to use API route
- This follows the correct Amplify Gen 2 pattern for secrets

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 16:00:32 -04:00
Derek Slenk
969839c840 Revert to simple environment variable approach
- Remove backend pipeline deployment that was causing IAM issues
- Remove complex secret configuration from backend.ts
- Use simple environment variable approach from Amplify Console

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 15:58:04 -04:00
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