프로젝트 문제 해결 기록 (Issue Timeline) - parksanggeon/smart-recipe-generator GitHub Wiki
프로젝트 문제 해결 기록 (Issue Timeline)
이 문서는 프로젝트 진행 중 발생한 주요 이슈들과 그 해결 과정을 기록합니다.
각 이슈는 GitHub Issues로 연결되며, 발생일과 상태를 함께 정리했습니다.
Issue 목록
Date | Title | Status |
---|---|---|
2025-05-13 | Unsplash API key not applied | ✅ Closed |
2025-05-16 | OpenAI API integration confusion | ✅ Closed |
2025-05-17 | TypeError: recipes.map is not a function |
✅ Closed |
2025-05-17 | Missing OPENAI_API_KEY in .env.local |
✅ Closed |
세부 이슈 기록
[#1] Unsplash API key not applied
- Date: 2025-05-13
- Problem: Not sure how to connect API key into project
- Solution:
- Created
.env.local
- Added
UNSPLASH_ACCESS_KEY=your_key
- Accessed with
process.env.UNSPLASH_ACCESS_KEY
- Used
NEXT_PUBLIC_
prefix for client-side exposure
- Created
[#2] OpenAI API Integration Confusion
- Date: 2025-05-16
- Problem: Unsure how to organize GPT-4o, DALL·E, TTS
- Solution:
- Separated API logic for text/image/audio
- Stored keys in
.env.local
- Verified Content-Type and body format
[#3] recipes.map
TypeError
- Date: 2025-05-17
- Problem:
recipes.map is not a function
- Solution:
- Checked API response structure
- Used conditional rendering:
Array.isArray(recipes) && recipes.map(...)
[#4] Missing OpenAI API Key
- Date: 2025-05-17
- Problem: Error -
OPENAI_API_KEY is not set
- Solution:
- Added
OPENAI_API_KEY=sk-...
to.env.local
- Restarted server
- Added