[fix] solution: Threads OAuth 콜백 함수명이 React useCallback과 충돌 — 빌드 실패
solution-site 빌드가 TS2440(Import declaration conflicts with local declaration of 'useCallback')로 실패했다. FastAPI 라우트 핸들러 함수명이 `callback`이라 orval이 만든 React Query 훅 이름이 `useCallback`이 됐고, 같은 파일에서 import한 React의 useCallback과 이름이 겹쳤다. - router/v1/social/oauth.py: 함수명 callback → oauth_callback - 백엔드 재빌드 후 npm run orval 로 재생성 → useOauthCallback, callbackParams.ts → oauthCallbackParams.ts docker compose build solution-site 로 재검증, 정상 빌드 확인
This commit is contained in:
1 parent
23c9dd6fcd
commit
09d07ec0dd
5 files changed
+43
-45
No files matched your search
@@ -11,7 +11,6 @@ export * from "./auditCheckData";
|
||||
export * from "./auditCheckDataRecommendation";
|
||||
export * from "./authProvider";
|
||||
export * from "./buildStatus";
|
||||
export * from "./callbackParams";
|
||||
export * from "./checkSlugParams";
|
||||
export * from "./decision";
|
||||
export * from "./errorInfo";
|
||||
@@ -107,6 +106,7 @@ export * from "./mySiteDataSiteId";
|
||||
export * from "./mySiteDataStatus";
|
||||
export * from "./mySiteDataTemplateId";
|
||||
export * from "./mySiteDataThumbnailUrl";
|
||||
export * from "./oauthCallbackParams";
|
||||
export * from "./placeCandidate";
|
||||
export * from "./placeCandidateAddress";
|
||||
export * from "./placeCandidateCategoryName";
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type CallbackParams = {
|
||||
export type OauthCallbackParams = {
|
||||
/**
|
||||
* @maxLength 2048
|
||||
*/
|
||||
Reference in new issue
Block a user