mirror of https://github.com/hashicorp/consul
22 lines
502 B
JavaScript
22 lines
502 B
JavaScript
|
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: {
|
||
|
modern: true,
|
||
|
rewrites: () => [
|
||
|
{
|
||
|
source: '/api/:path*',
|
||
|
destination: '/api-docs/:path*',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
env: {
|
||
|
HASHI_ENV: process.env.HASHI_ENV,
|
||
|
},
|
||
|
})
|