Files
stats/apps/docs/next.config.mjs
Carl-Gerhard Lindesvärd a7bed508b5 #32 - fix search index docs
2024-06-14 23:29:57 +02:00

34 lines
828 B
JavaScript

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);