import nextra from 'nextra'; /** @type {import("next").NextConfig} */ const config = { reactStrictMode: true, transpilePackages: ['@openpanel/queue'], eslint: { ignoreDuringBuilds: true }, typescript: { ignoreBuildErrors: true }, experimental: { // Avoid "Critical dependency: the request of a dependency is an expression" serverComponentsExternalPackages: ['bullmq'], }, /** * If you are using `appDir` then you must comment the below `i18n` config out. * * @see https://github.com/vercel/next.js/issues/41980 */ i18n: { locales: ['en-US'], defaultLocale: 'en-US', }, }; const withNextra = nextra({ theme: 'nextra-theme-docs', themeConfig: './theme.config.jsx', flexsearch: { codeblocks: false, }, defaultShowCopyCode: true, }); export default withNextra(config);