Prompt-Engineering-Guide/next.config.js

27 lines
630 B
JavaScript
Raw Normal View History

2023-03-10 23:22:18 +00:00
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
2023-10-04 17:53:35 +00:00
latex: true
2023-03-10 23:22:18 +00:00
})
2023-03-31 00:43:20 +00:00
module.exports = withNextra({
i18n: {
2023-11-27 19:08:16 +00:00
locales: ['en', 'zh', 'jp', 'pt', 'tr', 'es', 'it', 'fr', 'kr', 'ca', 'fi', 'ru','de'],
defaultLocale: 'en',
},
2024-01-02 21:28:40 +00:00
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
}
2023-03-31 00:43:20 +00:00
})