mirror of
https://github.com/dair-ai/Prompt-Engineering-Guide
synced 2024-11-18 03:25:39 +00:00
27 lines
630 B
JavaScript
27 lines
630 B
JavaScript
const withNextra = require('nextra')({
|
|
theme: 'nextra-theme-docs',
|
|
themeConfig: './theme.config.tsx',
|
|
latex: true
|
|
})
|
|
|
|
module.exports = withNextra({
|
|
i18n: {
|
|
locales: ['en', 'zh', 'jp', 'pt', 'tr', 'es', 'it', 'fr', 'kr', 'ca', 'fi', 'ru','de'],
|
|
defaultLocale: 'en',
|
|
},
|
|
webpack(config) {
|
|
const allowedSvgRegex = /components\/icons\/.+\.svg$/
|
|
|
|
const fileLoaderRule = config.module.rules.find(rule =>
|
|
rule.test?.test?.('.svg')
|
|
)
|
|
fileLoaderRule.exclude = allowedSvgRegex
|
|
|
|
config.module.rules.push({
|
|
test: allowedSvgRegex,
|
|
use: ['@svgr/webpack']
|
|
})
|
|
return config
|
|
}
|
|
})
|