2020-02-06 23:45:31 +00:00
|
|
|
const withHashicorp = require('@hashicorp/nextjs-scripts')
|
|
|
|
const path = require('path')
|
2020-05-27 03:00:14 +00:00
|
|
|
const dotenv = require('dotenv')
|
|
|
|
|
|
|
|
dotenv.config()
|
2020-02-06 23:45:31 +00:00
|
|
|
|
|
|
|
module.exports = withHashicorp({
|
|
|
|
defaultLayout: true,
|
|
|
|
transpileModules: ['is-absolute-url', '@hashicorp/react-mega-nav'],
|
2020-05-06 23:41:32 +00:00
|
|
|
mdx: { resolveIncludes: path.join(__dirname, 'pages/partials') },
|
2020-02-06 23:45:31 +00:00
|
|
|
})({
|
2020-05-27 03:00:14 +00:00
|
|
|
svgo: {
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
removeViewBox: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-02-06 23:45:31 +00:00
|
|
|
experimental: {
|
2020-02-18 18:33:09 +00:00
|
|
|
modern: true,
|
2020-02-06 23:45:31 +00:00
|
|
|
rewrites: () => [
|
|
|
|
{
|
|
|
|
source: '/api/:path*',
|
2020-05-06 23:41:32 +00:00
|
|
|
destination: '/api-docs/:path*',
|
|
|
|
},
|
|
|
|
],
|
2020-02-06 23:45:31 +00:00
|
|
|
},
|
|
|
|
env: {
|
2020-05-06 23:41:32 +00:00
|
|
|
HASHI_ENV: process.env.HASHI_ENV || 'development',
|
|
|
|
SEGMENT_WRITE_KEY: 'qW11yxgipKMsKFKQUCpTVgQUYftYsJj0',
|
|
|
|
BUGSNAG_CLIENT_KEY: '4fa712dfcabddd05da29fd1f5ea5a4c0',
|
|
|
|
BUGSNAG_SERVER_KEY: '61141296f1ba00a95a8788b7871e1184',
|
|
|
|
},
|
2020-02-06 23:45:31 +00:00
|
|
|
})
|