open-nomad/website/next.config.js
2021-10-05 13:31:14 -05:00

28 lines
600 B
JavaScript

const withHashicorp = require('@hashicorp/platform-nextjs-plugin')
const redirects = require('./redirects')
const rewrites = require('./rewrites')
module.exports = withHashicorp({
defaultLayout: true,
nextOptimizedImages: true,
})({
redirects() {
return redirects
},
rewrites() {
return rewrites
},
svgo: {
plugins: [
{
removeViewBox: false,
},
],
},
env: {
SEGMENT_WRITE_KEY: 'qW11yxgipKMsKFKQUCpTVgQUYftYsJj0',
BUGSNAG_CLIENT_KEY: '4fa712dfcabddd05da29fd1f5ea5a4c0',
BUGSNAG_SERVER_KEY: '61141296f1ba00a95a8788b7871e1184',
},
})