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 8b1a443 commit f181fa3Copy full SHA for f181fa3
src/pages/api/gateway.ts
@@ -1,11 +1,11 @@
1
-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') {
+ const { createGatewayOnEdgeRuntime } = await import('@lobehub/chat-plugins-gateway');
+
9
return createGatewayOnEdgeRuntime()(req);
10
}
11
0 commit comments