Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b89bee3

Browse files
committedNov 22, 2024·
🐛 fix: Fix vercel build
1 parent c34b131 commit b89bee3

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed
 

‎.husky/commit-msg

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
#!/usr/bin/env sh
12

23
npx --no -- commitlint --edit ${1}

‎.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
#!/usr/bin/env sh
12

23
npx --no-install lint-staged

‎api/edge-speech.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import cors from '../lib/cors';
2-
import { EdgeSpeechPayload, EdgeSpeechTTS } from '../src/core';
2+
import { EdgeSpeechPayload, createEdgeSpeech } from '../src/core/EdgeSpeechTTS/createEdgeSpeech';
33

44
export const config = {
55
runtime: 'edge',
@@ -9,7 +9,7 @@ export default async (req: Request) => {
99
if (req.method !== 'POST') return new Response('Method Not Allowed', { status: 405 });
1010
const payload = (await req.json()) as EdgeSpeechPayload;
1111

12-
const res = await EdgeSpeechTTS.createRequest({ payload });
12+
const res = await createEdgeSpeech({ payload });
1313

1414
return cors(req, res);
1515
};

‎api/microsoft-speech.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import cors from '../lib/cors';
2-
import { MicrosoftSpeechPayload, MicrosoftSpeechTTS } from '../src/core';
2+
import {
3+
MicrosoftSpeechPayload,
4+
createMicrosoftSpeech,
5+
} from '../src/core/MicrosoftSpeechTTS/createMicrosoftSpeech';
36

47
export const config = {
58
runtime: 'edge',
@@ -9,7 +12,7 @@ export default async (req: Request) => {
912
if (req.method !== 'POST') return new Response('Method Not Allowed', { status: 405 });
1013
const payload = (await req.json()) as MicrosoftSpeechPayload;
1114

12-
const res = await MicrosoftSpeechTTS.createRequest({ payload });
15+
const res = await createMicrosoftSpeech({ payload });
1316

1417
return cors(req, res);
1518
};

0 commit comments

Comments
 (0)
Please sign in to comment.