Files
web/next.config.ts

41 lines
773 B
TypeScript
Raw Permalink Normal View History

import createMDX from '@next/mdx'
2025-03-04 10:10:35 +08:00
export default createMDX({
2025-12-09 09:32:20 +08:00
extension: /\.(md|mdx)$/,
options: {
remarkPlugins: [
'remark-gfm',
],
rehypePlugins: [
'rehype-highlight',
],
},
})({
output: 'standalone',
2025-12-11 14:10:52 +08:00
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
cacheComponents: true,
reactCompiler: true,
experimental: {
turbopackFileSystemCacheForDev: true,
},
allowedDevOrigins: [
'192.168.3.42',
'192.168.3.14',
],
2025-06-23 18:59:31 +08:00
images: {
localPatterns: [
2025-12-11 11:04:30 +08:00
{pathname: '/captcha'},
{pathname: '/img/*'},
],
2025-06-23 18:59:31 +08:00
remotePatterns: [
{
protocol: 'https',
hostname: 'pay.rscygroup.com',
port: '',
pathname: '/api/scan/imgs/*',
search: '',
},
],
},
})