add documentation
This commit is contained in:
33
apps/docs/next.config.mjs
Normal file
33
apps/docs/next.config.mjs
Normal file
@@ -0,0 +1,33 @@
|
||||
import nextra from 'nextra';
|
||||
|
||||
/** @type {import("next").NextConfig} */
|
||||
const config = {
|
||||
reactStrictMode: true,
|
||||
transpilePackages: ['@mixan/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'],
|
||||
defaultLocale: 'en',
|
||||
},
|
||||
};
|
||||
|
||||
const withNextra = nextra({
|
||||
theme: 'nextra-theme-docs',
|
||||
themeConfig: './theme.config.jsx',
|
||||
flexsearch: {
|
||||
codeblocks: false,
|
||||
},
|
||||
defaultShowCopyCode: true,
|
||||
});
|
||||
|
||||
export default withNextra(config);
|
||||
Reference in New Issue
Block a user