Skip to content

Commit 0078d79

Browse files
committed
fix: node-fetch for ai
1 parent e0cab2f commit 0078d79

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

next.config.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ let nextConfig = {
5252
config.externals.push({
5353
'utf-8-validate': 'commonjs utf-8-validate',
5454
bufferutil: 'commonjs bufferutil',
55-
'node-fetch': 'commonjs node-fetch',
5655
})
5756

5857
// if (

src/app/api/ai/summary/route.ts

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { apiClient } from '~/lib/request'
99

1010
const openai = new OpenAI({
1111
apiKey: process.env.OPENAI_API_KEY,
12-
fetch,
1312
})
1413

1514
export const GET = async (req: NextRequest) => {

0 commit comments

Comments
 (0)