We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84e360c commit 8b1a443Copy full SHA for 8b1a443
src/pages/api/gateway.ts
@@ -1,9 +1,13 @@
1
-import { createLobeChatPluginGateway } from '@lobehub/chat-plugins-gateway';
+import { createGatewayOnEdgeRuntime } from '@lobehub/chat-plugins-gateway';
2
+
3
+export const config = {
4
+ runtime: 'edge',
5
+};
6
7
export default async (req: Request) => {
8
if (process.env.NODE_ENV === 'development') {
- return createLobeChatPluginGateway()(req);
9
+ return createGatewayOnEdgeRuntime()(req);
10
}
11
- return;
12
+ return new Response('gateway');
13
};
0 commit comments