You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/website/next.config.js

25 lines
773 B

const withHashicorp = require('@hashicorp/platform-nextjs-plugin')
const redirects = require('./redirects.next')
module.exports = withHashicorp({
defaultLayout: true,
nextOptimizedImages: true,
})({
svgo: { plugins: [{ removeViewBox: false }] },
rewrites: () => [
{
source: '/api/:path*',
destination: '/api-docs/:path*',
},
],
redirects: () => redirects,
// Note: These are meant to be public, it's not a mistake that they are here
env: {
HASHI_ENV: process.env.HASHI_ENV,
SEGMENT_WRITE_KEY: 'AjXdfmTTk1I9q9dfyePuDFHBrz1tCO3l',
BUGSNAG_CLIENT_KEY: 'de0b822b269aa57b620efd8927e03744',
BUGSNAG_SERVER_KEY: 'b6c57b27a37e531a5de94f065dd98bc0',
ENABLE_VERSIONED_DOCS: process.env.ENABLE_VERSIONED_DOCS || false,
},
})