fix: 빌드 테스트

main
Mina Choi 2026-05-14 17:40:28 +09:00
parent 2fd78f48b5
commit c07ef255d4
4 changed files with 14 additions and 23 deletions

View File

@ -3,7 +3,11 @@ import { motion } from 'motion/react';
import { FileTextFilled } from '@/shared/icons/FilledIcons'; import { FileTextFilled } from '@/shared/icons/FilledIcons';
import type { StudioState } from '@/features/studio/types/studio'; import type { StudioState } from '@/features/studio/types/studio';
import { CHANNEL_OPTIONS } from '@/features/studio/types/studio'; import { CHANNEL_OPTIONS } from '@/features/studio/types/studio';
import { generateImage, type GenerateResult } from '@/features/studio/services/geminiImageGen'; // 이미지 생성은 백엔드로 이관됨 — 임시 stub
interface GenerateResult { imageDataUrl: string }
async function generateImage(_s: unknown): Promise<GenerateResult> {
throw new Error('이미지 생성은 백엔드 SDK 연결 후 사용 가능합니다.');
}
import { Button } from '@/shared/ui/button'; import { Button } from '@/shared/ui/button';
import { Textarea } from '@/shared/ui/textarea'; import { Textarea } from '@/shared/ui/textarea';

View File

@ -2,8 +2,15 @@ import { useState, useCallback, useRef } from 'react';
import { motion } from 'motion/react'; import { motion } from 'motion/react';
import { VideoFilled, FileTextFilled } from '@/shared/icons/FilledIcons'; import { VideoFilled, FileTextFilled } from '@/shared/icons/FilledIcons';
import { CHANNEL_OPTIONS, MUSIC_TRACKS, type StudioState, type GenerateOutputType } from '@/features/studio/types/studio'; import { CHANNEL_OPTIONS, MUSIC_TRACKS, type StudioState, type GenerateOutputType } from '@/features/studio/types/studio';
import { generateImage, type GenerateResult } from '@/features/studio/services/geminiImageGen'; // 생성은 백엔드로 이관됨 — 임시 stub
import { generateVideo, type VideoResult } from '@/features/studio/services/creatomateVideoGen'; interface GenerateResult { imageDataUrl: string }
interface VideoResult { videoUrl: string; thumbnailUrl?: string }
async function generateImage(_s: unknown): Promise<GenerateResult> {
throw new Error('이미지 생성은 백엔드 SDK 연결 후 사용 가능합니다.');
}
async function generateVideo(_s: unknown): Promise<VideoResult> {
throw new Error('영상 생성은 백엔드 SDK 연결 후 사용 가능합니다.');
}
import { Button } from '@/shared/ui/button'; import { Button } from '@/shared/ui/button';
interface Props { interface Props {

View File

@ -1,10 +0,0 @@
/**
* Stub Creatomate (http://localhost:8001) 로 위임.
* Orval-generated POST endpoint .
*/
export async function generateVideoWithCreatomate(): Promise<never> {
throw new Error(
'[creatomateVideoGen stub] migrated to backend. Call generated SDK endpoint instead.',
)
}
export default generateVideoWithCreatomate

View File

@ -1,10 +0,0 @@
/**
* Stub Gemini (http://localhost:8001) 로 위임.
* Orval-generated POST endpoint .
*/
export async function generateImageWithGemini(): Promise<never> {
throw new Error(
'[geminiImageGen stub] migrated to backend. Call generated SDK endpoint instead.',
)
}
export default generateImageWithGemini