Skip to content

Commit

Permalink
route edge config
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenNaihin committed Jan 17, 2024
1 parent 185b86a commit fe63198
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ui/app/api/cover-image-and-subtitle/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import OpenAI from 'openai';
import Replicate from 'replicate';
import { v4 as uuidv4 } from 'uuid';

export const config = {
api: {
responseLimit: false,
bodyParser: false,
},
};

// initial config
const ffmpegPath = './node_modules/ffmpeg-static/ffmpeg';

Expand Down
7 changes: 7 additions & 0 deletions ui/public/stacks/cover-image-and-subtitle/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import OpenAI from 'openai';
import Replicate from 'replicate';
import { v4 as uuidv4 } from 'uuid';

export const config = {
api: {
responseLimit: false,
bodyParser: false,
},
};

// initial config
const ffmpegPath = './node_modules/ffmpeg-static/ffmpeg';

Expand Down

0 comments on commit fe63198

Please sign in to comment.