From 5090977d4191355dcb8a337fdf593a29dcfb02fc Mon Sep 17 00:00:00 2001 From: GoldElysium Date: Sun, 30 Oct 2022 10:15:36 +0100 Subject: [PATCH] fix: use undici See https://github.com/vercel/next.js/issues/41853 --- next.config.js | 3 ++- tsconfig.json | 12 +++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/next.config.js b/next.config.js index 9bb41dd1..980da816 100644 --- a/next.config.js +++ b/next.config.js @@ -4,9 +4,10 @@ * @type {import('next').NextConfig} **/ const nextConfig = { - output: 'standalone', + // output: 'standalone', experimental: { appDir: true, + enableUndici: true, } }; diff --git a/tsconfig.json b/tsconfig.json index e6bb8eb4..62cf38e3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,14 +17,20 @@ "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", - "incremental": true + "incremental": true, + "plugins": [ + { + "name": "next" + } + ] }, "include": [ "next-env.d.ts", "**/*.ts", - "**/*.tsx" + "**/*.tsx", + ".next/types/**/*.ts" ], "exclude": [ "node_modules" ] -} +}