Conversation
- Supabase 클라이언트 및 타입 정의 추가 - Feature Flag 기반 API 전환 구조 (DATA_SOURCE 환경변수) - 통합 API 인덱스로 import 경로 단일화 (@/app/api) - 마이그레이션 스크립트 5개 생성 (extract, upload, blur, insert, verify) - CloudFront 도메인 지원 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- 04-insert-supabase.ts: 문자열 ID는 legacy_id를 NULL로 설정 - getPostById.ts: 숫자/UUID 형식에 따라 적절한 컬럼으로 조회 - 숫자: legacy_id로 조회 - UUID: id로 조회 - 그 외: 에러 반환 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- PostType.id 타입을 number에서 string | number로 변경 - Supabase converter에서 UUID 직접 사용하도록 수정 - Card 컴포넌트의 id prop 타입 동기화 - 불필요한 타입 캐스팅 제거 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- legacy_id INTEGER → datocms_id VARCHAR 컬럼 변경 - DatoCMS ID(숫자/문자열)를 그대로 저장하여 Search Console URL 유지 - getPostById에서 datocms_id 우선 조회 - converter에서 datocms_id 우선 반환 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- PostType에 datocmsId 필드 추가 - Supabase converter에서 datocms_id 반환 - DatoCMS GraphQL에 datocmsId alias 추가 - Cards 컴포넌트에서 datocmsId로 URL 생성 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- getPostIds.ts: legacy_id → datocms_id로 변경하여 sitemap 생성 오류 수정 - 환경변수 NEXT_PUBLIC_SUPABASE_* → SUPABASE_*로 변경 (서버 전용) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DATA_SOURCE=supabase|datocms)주요 변경사항
scripts/migration/(5개 스크립트)src/app/api/supabase/및src/libs/supabase/src/config/dataSource.ts로 데이터 소스 전환PostType유지,datocmsId필드 추가Test plan
DATA_SOURCE=supabase pnpm dev로 로컬 테스트/post/:datocmsId) 접근 확인DATA_SOURCE=datocms로 롤백 테스트🤖 Generated with Claude Code