зеркало из https://github.com/github/docs.git
33 строки
792 B
JavaScript
33 строки
792 B
JavaScript
const { productIds } = require('./lib/all-products')
|
|
const languages = require('./lib/languages')
|
|
|
|
module.exports = {
|
|
// speed up production `next build` by ignoring typechecking during that step of build.
|
|
// type-checking still occurs in the Dockerfile build
|
|
future: {
|
|
webpack: 5,
|
|
},
|
|
typescript: {
|
|
ignoreBuildErrors: true
|
|
},
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
i18n: {
|
|
locales: Object.values(languages).map(({ code }) => code),
|
|
defaultLocale: 'en'
|
|
},
|
|
sassOptions: {
|
|
quietDeps: true
|
|
},
|
|
async rewrites () {
|
|
const DEFAULT_VERSION = 'free-pro-team@latest'
|
|
return productIds.map((productId) => {
|
|
return {
|
|
source: `/${productId}/:path*`,
|
|
destination: `/${DEFAULT_VERSION}/${productId}/:path*`
|
|
}
|
|
})
|
|
}
|
|
}
|