2020-02-06 23:45:31 +00:00
|
|
|
const withHashicorp = require('@hashicorp/nextjs-scripts')
|
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = withHashicorp({
|
|
|
|
defaultLayout: true,
|
|
|
|
transpileModules: ['is-absolute-url', '@hashicorp/react-mega-nav'],
|
|
|
|
mdx: { resolveIncludes: path.join(__dirname, 'pages/partials') }
|
|
|
|
})({
|
|
|
|
experimental: {
|
|
|
|
css: true,
|
2020-02-18 18:33:09 +00:00
|
|
|
modern: true,
|
2020-02-06 23:45:31 +00:00
|
|
|
rewrites: () => [
|
|
|
|
{
|
|
|
|
source: '/api/:path*',
|
|
|
|
destination: '/api-docs/:path*'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
exportTrailingSlash: true,
|
|
|
|
env: {
|
|
|
|
HASHI_ENV: process.env.HASHI_ENV
|
|
|
|
}
|
|
|
|
})
|