1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/next.config.js
2021-05-05 14:54:49 -07:00

19 lines
475 B
JavaScript

const { productIds } = require('./lib/all-products')
const languages = require('./lib/languages')
module.exports = {
i18n: {
locales: Object.values(languages).map(({ code }) => code),
defaultLocale: 'en'
},
async rewrites () {
const DEFAULT_VERSION = 'free-pro-team@latest'
return productIds.map((productId) => {
return {
source: `/${productId}/:path*`,
destination: `/${DEFAULT_VERSION}/${productId}/:path*`
}
})
}
}