- SelectValue children 조건부 렌더링 → placeholder prop으로 이동 - Radix UI Select 상태 관리 문제 해결 - @/lib/api barrel export 추가 (빌드 오류 해결) 수정 파일: - ApprovalLineSection.tsx: SelectValue 수정 - ReferenceSection.tsx: SelectValue 수정 - src/lib/api/index.ts: 신규 생성 빌드 검증: npm run build 성공 (349 페이지)
16 lines
479 B
TypeScript
16 lines
479 B
TypeScript
// lib/api/index.ts
|
|
// API 클라이언트 배럴 익스포트
|
|
|
|
export { ApiClient, withTokenRefresh } from './client';
|
|
export { serverFetch } from './fetch-wrapper';
|
|
export { AUTH_CONFIG } from './auth/auth-config';
|
|
|
|
// Server-side API 클라이언트 인스턴스
|
|
// 서버 액션에서 사용
|
|
import { ApiClient } from './client';
|
|
import { AUTH_CONFIG } from './auth/auth-config';
|
|
|
|
export const apiClient = new ApiClient({
|
|
mode: 'api-key',
|
|
apiKey: process.env.API_KEY,
|
|
}); |