Files
web/next.config.ts
2025-12-09 09:32:20 +08:00

38 lines
654 B
TypeScript

import createMDX from '@next/mdx'
export default createMDX({
extension: /\.(md|mdx)$/,
options: {
rehypePlugins: [
['rehype-highlight', null],
],
},
})({
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
output: 'standalone',
allowedDevOrigins: [
'192.168.3.42',
],
experimental: {
mdxRs: {
mdxType: 'gfm',
},
},
images: {
localPatterns: [
{
pathname: '/captcha',
},
],
remotePatterns: [
{
protocol: 'https',
hostname: 'pay.rscygroup.com',
port: '',
pathname: '/api/scan/imgs/*',
search: '',
},
],
},
})