2020-04-06 20:27:35 +00:00
|
|
|
const withHashicorp = require('@hashicorp/nextjs-scripts')
|
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = withHashicorp({
|
|
|
|
defaultLayout: true,
|
2020-10-09 15:48:21 +00:00
|
|
|
transpileModules: ['is-absolute-url', '@hashicorp/react-.*'],
|
2020-04-06 20:27:35 +00:00
|
|
|
mdx: { resolveIncludes: path.join(__dirname, 'pages/partials') },
|
|
|
|
})({
|
2020-10-09 15:48:21 +00:00
|
|
|
svgo: { plugins: [{ removeViewBox: false }] },
|
2020-04-06 20:27:35 +00:00
|
|
|
experimental: {
|
|
|
|
modern: true,
|
|
|
|
rewrites: () => [
|
|
|
|
{
|
|
|
|
source: '/api/:path*',
|
|
|
|
destination: '/api-docs/:path*',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-09-10 17:32:06 +00:00
|
|
|
// Note: These are meant to be public, it's not a mistake that they are here
|
2020-04-06 20:27:35 +00:00
|
|
|
env: {
|
2020-09-10 17:32:06 +00:00
|
|
|
HASHI_ENV: process.env.HASHI_ENV || 'development',
|
|
|
|
SEGMENT_WRITE_KEY: 'IyzLrqXkox5KJ8XL4fo8vTYNGfiKlTCm',
|
|
|
|
BUGSNAG_CLIENT_KEY: '01625078d856ef022c88f0c78d2364f1',
|
|
|
|
BUGSNAG_SERVER_KEY: 'be8ed0d0fc887d547284cce9e98e60e5',
|
2020-04-06 20:27:35 +00:00
|
|
|
},
|
|
|
|
})
|