mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-28 12:15:32 +08:00
style(prettier): format code style
This commit is contained in:
@@ -7,25 +7,25 @@ const withMDX = require('@next/mdx')({
|
||||
|
||||
const nextConfig = {
|
||||
target: 'serverless',
|
||||
|
||||
|
||||
pageExtensions: ['jsx', 'js', 'mdx', 'md', 'ts', 'tsx'],
|
||||
|
||||
|
||||
cssModules: true,
|
||||
|
||||
|
||||
cssLoaderOptions: {
|
||||
importLoaders: 1,
|
||||
localIdentName: '[local]___[hash:base64:5]',
|
||||
},
|
||||
|
||||
|
||||
env: {
|
||||
VERSION: require('./package.json').version,
|
||||
},
|
||||
|
||||
|
||||
webpack(config) {
|
||||
config.resolve.modules.push(__dirname)
|
||||
return config
|
||||
},
|
||||
|
||||
|
||||
experimental: {
|
||||
reactRefresh: true,
|
||||
|
||||
@@ -34,17 +34,17 @@ const nextConfig = {
|
||||
{
|
||||
source: '/docs/getting-started/:path*',
|
||||
permanent: true,
|
||||
destination: '/en-us/guide/:path*'
|
||||
destination: '/en-us/guide/:path*',
|
||||
},
|
||||
{
|
||||
source: '/en-us/getting-started/:path*',
|
||||
permanent: true,
|
||||
destination: '/en-us/guide/:path*'
|
||||
destination: '/en-us/guide/:path*',
|
||||
},
|
||||
{
|
||||
source: '/zh-cn/getting-started/:path*',
|
||||
permanent: true,
|
||||
destination: '/zh-cn/guide/:path*'
|
||||
destination: '/zh-cn/guide/:path*',
|
||||
},
|
||||
{
|
||||
source: '/zh-cn/',
|
||||
|
||||
Reference in New Issue
Block a user