Skip to content

Commit

Permalink
🐛 fix: fix gateway on edge runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Dec 13, 2023
1 parent 9cea9cf commit fdc9863
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/app/api/plugins/route.ts

This file was deleted.

5 changes: 5 additions & 0 deletions src/pages/api/plugins.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { createGatewayOnNodeRuntime } from '@lobehub/chat-plugins-gateway';

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

export default createGatewayOnNodeRuntime({ pluginsIndexUrl: PLUGINS_INDEX_URL });

0 comments on commit fdc9863

Please sign in to comment.