open-vault/website/next.config.js
Jeff Escalante f48841c6ea
Docs: prepare for vercel hosting move (#10598)
* prepare for move to vercel hosting

* update readme

* add back netlify files for hosting transition
2021-01-15 15:29:22 -05:00

22 lines
644 B
JavaScript

const withHashicorp = require('@hashicorp/nextjs-scripts')
const redirects = require('./redirects.next')
module.exports = withHashicorp({
transpileModules: ['is-absolute-url', '@hashicorp/react-.*'],
})({
svgo: { plugins: [{ removeViewBox: false }] },
rewrites: () => [
{
source: '/api/:path*',
destination: '/api-docs/:path*',
},
],
redirects: () => redirects,
env: {
HASHI_ENV: process.env.HASHI_ENV || 'development',
SEGMENT_WRITE_KEY: 'OdSFDq9PfujQpmkZf03dFpcUlywme4sC',
BUGSNAG_CLIENT_KEY: '07ff2d76ce27aded8833bf4804b73350',
BUGSNAG_SERVER_KEY: 'fb2dc40bb48b17140628754eac6c1b11',
},
})