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
| // src/app/api/upload/route.ts | |
| // File upload handling | |
| import {getSignedUrl} from '@aws-sdk/s3-request-presigner'; | |
| import {AwsRegion} from '@remotion/lambda'; | |
| import {getAwsClient} from '@remotion/lambda/client'; | |
| import {NextRequest, NextResponse} from 'next/server'; | |
| import { | |
| PresignErrorCode, | |
| PresignErrorResponse, |
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
| // src/app/api/render/route.ts | |
| // Video rendering and export | |
| import { | |
| renderMediaOnLambda, | |
| speculateFunctionName, | |
| } from '@remotion/lambda/client'; | |
| import {NextRequest, NextResponse} from 'next/server'; | |
| import { | |
| RenderVideoPayload, |
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
| // src/app/api/progress/route.ts | |
| // Progress tracking for long-running tasks | |
| import { | |
| getRenderProgress, | |
| speculateFunctionName, | |
| } from '@remotion/lambda/client'; | |
| import {NextRequest, NextResponse} from 'next/server'; | |
| import { | |
| GetProgressPayload, |
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
| // src/app/api/font/[name]/route.ts | |
| // Font loading and management | |
| import {NextRequest, NextResponse} from 'next/server'; | |
| import {GOOGLE_FONTS_DATABASE} from '@/editor/data/google-fonts'; | |
| interface RouteParams { | |
| params: { | |
| name: string; | |
| }; |
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
| // src/app/api/captions/route.ts | |
| // Caption generation and processing | |
| import {getAwsClient} from '@remotion/lambda/client'; | |
| import { | |
| OpenAiVerboseTranscription, | |
| openAiWhisperApiToCaptions, | |
| } from '@remotion/openai-whisper'; | |
| import {NextRequest, NextResponse} from 'next/server'; | |
| import OpenAI from 'openai'; |