Skip to content

Commit

Permalink
🐛 fix: try with node mode plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored and canisminor1990 committed Dec 15, 2023
1 parent df57cde commit 6bb547f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/app/api/plugins/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { createGatewayOnEdgeRuntime } from '@lobehub/chat-plugins-gateway';

import { PLUGINS_INDEX_URL } from '@/const/url';

export const POST = createGatewayOnEdgeRuntime({ pluginsIndexUrl: PLUGINS_INDEX_URL });
2 changes: 2 additions & 0 deletions src/app/api/proxy/route.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const runtime = 'edge';

/**
* just for a proxy
*/
Expand Down
5 changes: 0 additions & 5 deletions src/pages/api/plugins.ts

This file was deleted.

0 comments on commit 6bb547f

Please sign in to comment.