1
0
mirror of synced 2026-01-29 12:00:58 -05:00
Files
docs/next.config.js
Mike Surowiec 83e33cc9bb Quiet sass warnings (#19960)
* npm install sass@latest

* add quietDeps: true to webpack config

* prevent error message from hmr abort, cleans up the log

Co-authored-by: Sarah Schneider <sarahs@github.com>
2021-06-16 19:47:01 +00:00

30 lines
745 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
},
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*`
}
})
}
}