diff --git a/next.config.js b/next.config.js index 30f34c06..b3c37bc1 100644 --- a/next.config.js +++ b/next.config.js @@ -9,6 +9,9 @@ module.exports = { images: { domains: ['cdn.sanity.io'], }, + experimental: { + esmExternals: false, + }, reactStrictMode: true, }; diff --git a/tsconfig.json b/tsconfig.json index 13cc7fee..aadf372b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,13 @@ "alwaysStrict": true, "incremental": true }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "src/components/__tests__/testing-utils.js", "jest.setup.js"], + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + "src/components/__tests__/testing-utils.js", + "jest.setup.js", + "next.config.js" + ], "exclude": ["node_modules"] }