2020-01-18 00:18:09 +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'],
|
2020-04-09 17:56:59 +00:00
|
|
|
mdx: { resolveIncludes: path.join(__dirname, 'pages') },
|
2020-01-18 00:18:09 +00:00
|
|
|
})({
|
|
|
|
experimental: {
|
2020-03-13 22:34:39 +00:00
|
|
|
modern: true,
|
2020-01-18 00:18:09 +00:00
|
|
|
rewrites: () => [
|
|
|
|
{
|
|
|
|
source: '/api/:path*',
|
2020-04-09 17:56:59 +00:00
|
|
|
destination: '/api-docs/:path*',
|
|
|
|
},
|
2020-01-18 00:18:09 +00:00
|
|
|
],
|
|
|
|
redirects: () => [
|
2020-01-18 01:32:35 +00:00
|
|
|
{
|
|
|
|
source: '/intro',
|
|
|
|
destination: '/intro/getting-started',
|
2020-04-09 17:56:59 +00:00
|
|
|
permanent: false,
|
|
|
|
},
|
|
|
|
],
|
2020-01-18 00:18:09 +00:00
|
|
|
},
|
|
|
|
env: {
|
2020-05-21 17:18:17 +00:00
|
|
|
HASHI_ENV: process.env.HASHI_ENV || 'development',
|
|
|
|
SEGMENT_WRITE_KEY: 'OdSFDq9PfujQpmkZf03dFpcUlywme4sC',
|
|
|
|
BUGSNAG_CLIENT_KEY: '07ff2d76ce27aded8833bf4804b73350',
|
|
|
|
BUGSNAG_SERVER_KEY: 'fb2dc40bb48b17140628754eac6c1b11',
|
2020-04-09 17:56:59 +00:00
|
|
|
},
|
2020-01-18 00:18:09 +00:00
|
|
|
})
|