* feat: add nextjs middleware handling split * fix: eslint errors * fix: filter boolean from csp list * fix: feature flag nextjs server start * feat: add prettier rules for ts,tsx files * fix: remove unnecessary async from next middleware * fix: next middleware name * Update tsconfig.json Co-authored-by: James M. Greene <JamesMGreene@github.com> * Update next-env.d.ts Co-authored-by: James M. Greene <JamesMGreene@github.com> * fix: add typescript linting to lint command * add comment for unsafe-eval, update webpack to use eval in development * fix: feature flag typo Co-authored-by: James M. Greene <JamesMGreene@github.com>
18 lines
396 B
JavaScript
18 lines
396 B
JavaScript
const { productIds } = require('./lib/all-products')
|
|
|
|
module.exports = {
|
|
i18n: {
|
|
locales: ['en', 'ja'],
|
|
defaultLocale: 'en'
|
|
},
|
|
async rewrites () {
|
|
const defaultVersionId = 'free-pro-team@latest'
|
|
return productIds.map((productId) => {
|
|
return {
|
|
source: `/${productId}/:path*`,
|
|
destination: `/${defaultVersionId}/${productId}/:path*`
|
|
}
|
|
})
|
|
}
|
|
}
|