open-nomad/website/next.config.js
Jeff Escalante 6a1764edb3
[website] a small collection of upgrades (#7162)
* update deps, fix logo styles on mobile, preload css and fonts
* update product downloader
2020-02-18 13:33:09 -05:00

25 lines
573 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: {
css: true,
modern: true,
polyfillsOptimization: true,
rewrites: () => [
{
source: '/api/:path*',
destination: '/api-docs/:path*'
}
]
},
exportTrailingSlash: true,
env: {
HASHI_ENV: process.env.HASHI_ENV
}
})