diff --git a/next.config.mjs b/next.config.mjs index 8549515..3d5df02 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -3,9 +3,13 @@ const nextConfig = { experimental: { serverComponentsExternalPackages: ['pg'], }, - webpack: { - exclude: ["/docs"] - } + webpack: (config) => { + config.module.rules?.push({ + test: /docs/, + loader: "ignore-loader", + }); + return config; + }, }; export default nextConfig;