jan/docs/next.config.mjs
hiento09 f93deb6749
chore: move Jan Docs back into Jan Repo (#3790)
Co-authored-by: Hien To <tominhhien97@gmail.com>
2024-10-14 10:07:16 +07:00

39 lines
744 B
JavaScript

/** @type {import('next').NextConfig} */
import nextra from 'nextra'
import { remarkCodeHike } from '@code-hike/mdx'
const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
defaultShowCopyCode: true,
latex: true,
mdxOptions: {
remarkPlugins: [
[
remarkCodeHike,
{
theme: 'dark-plus',
showCopyButton: true,
skipLanguages: ['mermaid'],
},
],
],
},
})
const nextConfig = {
reactStrictMode: true,
output: 'export',
env: {
GTM_ID: process.env.GTM_ID,
},
transpilePackages: ['@scalar', 'react-tweet'],
images: {
formats: ['image/webp'],
unoptimized: true,
},
}
export default withNextra(nextConfig)