mirror of
https://github.com/zhigang1992/react.git
synced 2026-02-12 22:29:35 +08:00
* feat(scaleable): add scaleable props to each component * chore(scaleable): update the exported type * feat: apply scaleable to components chore: remove with-default test: improve testcase for scaleable chore: resolve test warning ci: upgrade nodejs to latest lts docs: fix type error in document site * docs: update documents to be compatible with scaleable chore: fix build errors * chore: remove all size-related attributes docs: improve guide document * docs: add scaleable documentation test: update snapshots chore: remove unused * feat: add scaleable to grid components * docs: improve docs * test: update snapshots * fix(grid): fix basic component props
63 lines
1.1 KiB
JavaScript
63 lines
1.1 KiB
JavaScript
const withMDX = require('@next/mdx')({
|
|
extension: /\.(md|mdx)?$/,
|
|
options: {
|
|
rehypePlugins: [require('@mapbox/rehype-prism'), require('rehype-join-line')],
|
|
},
|
|
})
|
|
|
|
const nextConfig = {
|
|
target: 'serverless',
|
|
|
|
// reactStrictMode: true,
|
|
|
|
generateEtags: false,
|
|
|
|
poweredByHeader: false,
|
|
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
|
|
pageExtensions: ['jsx', 'js', 'mdx', 'md', 'ts', 'tsx'],
|
|
|
|
cssModules: true,
|
|
|
|
cssLoaderOptions: {
|
|
importLoaders: 1,
|
|
localIdentName: '[local]___[hash:base64:5]',
|
|
},
|
|
|
|
env: {
|
|
VERSION: require('./package.json').version,
|
|
},
|
|
|
|
trailingSlash: false,
|
|
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/zh-cn',
|
|
permanent: true,
|
|
destination: '/zh-cn/guide/introduction',
|
|
},
|
|
{
|
|
source: '/en-us',
|
|
permanent: true,
|
|
destination: '/en-us/guide/introduction',
|
|
},
|
|
{
|
|
source: '/',
|
|
permanent: true,
|
|
destination: '/en-us',
|
|
},
|
|
{
|
|
source: '/icons',
|
|
permanent: true,
|
|
destination: '/en-us/components/icons',
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
module.exports = withMDX(nextConfig)
|