Files
web/next.config.ts

41 lines
773 B
TypeScript

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