From c180e356f2addf19bd817bd6d1f3dfb23d727468 Mon Sep 17 00:00:00 2001 From: agracio Date: Thu, 19 Dec 2024 03:48:51 +0000 Subject: [PATCH] Update README.md --- README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e3a03d74..5a7b1d28 100644 --- a/README.md +++ b/README.md @@ -139,11 +139,22 @@ When packaging your application using Webpack make sure that `edge-js` is specif ### Next.js -`next.config.mjs` +`next.config.js` ```js - experimental: { - serverComponentsExternalPackages: ['edge-js'], - }, +const nextConfig = { + serverExternalPackages: ['edge-js'], +} + +module.exports = nextConfig +``` + +`next.config.ts` +```typescript +const nextConfig: NextConfig = { + serverExternalPackages: ['edge-js'], +}; + +export default nextConfig; ``` ## Additional languages support