Skip to content

Commit

Permalink
🔧 chore: change to edge runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 16, 2023
1 parent a9fa133 commit 6cf3f3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/v1/runner.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { PluginsMap } from '../../plugins';
import { OpenAIPluginPayload } from '../../types/plugins';

export const runtime = 'edge';
export const config = {
runtime: 'edge',
};

export default async (req: Request) => {
if (req.method !== 'POST') return new Response('Method Not Allowed', { status: 405 });
Expand Down

0 comments on commit 6cf3f3d

Please sign in to comment.