fix: 빌드 테스트
parent
2fd78f48b5
commit
c07ef255d4
|
|
@ -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';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -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
|
|
||||||
Loading…
Reference in New Issue