Skip to content

Commit

Permalink
🐛 fix: Fix vercel build
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 22, 2024
1 parent c34b131 commit b89bee3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env sh

npx --no -- commitlint --edit ${1}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env sh

npx --no-install lint-staged
4 changes: 2 additions & 2 deletions api/edge-speech.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cors from '../lib/cors';
import { EdgeSpeechPayload, EdgeSpeechTTS } from '../src/core';
import { EdgeSpeechPayload, createEdgeSpeech } from '../src/core/EdgeSpeechTTS/createEdgeSpeech';

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

const res = await EdgeSpeechTTS.createRequest({ payload });
const res = await createEdgeSpeech({ payload });

return cors(req, res);
};
7 changes: 5 additions & 2 deletions api/microsoft-speech.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import cors from '../lib/cors';
import { MicrosoftSpeechPayload, MicrosoftSpeechTTS } from '../src/core';
import {
MicrosoftSpeechPayload,
createMicrosoftSpeech,
} from '../src/core/MicrosoftSpeechTTS/createMicrosoftSpeech';

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

const res = await MicrosoftSpeechTTS.createRequest({ payload });
const res = await createMicrosoftSpeech({ payload });

return cors(req, res);
};

0 comments on commit b89bee3

Please sign in to comment.