2021-07-26 14:26:50 +00:00
|
|
|
const withHashicorp = require('@hashicorp/platform-nextjs-plugin')
|
2021-01-13 01:09:23 +00:00
|
|
|
const redirects = require('./redirects.next')
|
2020-04-06 20:27:35 +00:00
|
|
|
|
2021-05-06 17:33:15 +00:00
|
|
|
module.exports = withHashicorp({
|
2021-12-20 21:42:20 +00:00
|
|
|
dato: {
|
|
|
|
// This token is safe to be in this public repository, it only has access to content that is publicly viewable on the website
|
|
|
|
token: '88b4984480dad56295a8aadae6caad',
|
|
|
|
},
|
2021-10-05 18:32:41 +00:00
|
|
|
nextOptimizedImages: true,
|
2021-12-20 21:42:20 +00:00
|
|
|
transpileModules: ['@hashicorp/flight-icons'],
|
2021-05-06 17:33:15 +00:00
|
|
|
})({
|
2020-10-09 15:48:21 +00:00
|
|
|
svgo: { plugins: [{ removeViewBox: false }] },
|
2020-12-08 23:24:36 +00:00
|
|
|
rewrites: () => [
|
|
|
|
{
|
|
|
|
source: '/api/:path*',
|
|
|
|
destination: '/api-docs/:path*',
|
|
|
|
},
|
|
|
|
],
|
2021-01-13 01:09:23 +00:00
|
|
|
redirects: () => redirects,
|
2020-05-21 18:22:50 +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-05-19 18:32:38 +00:00
|
|
|
HASHI_ENV: process.env.HASHI_ENV || 'development',
|
|
|
|
SEGMENT_WRITE_KEY: 'IyzLrqXkox5KJ8XL4fo8vTYNGfiKlTCm',
|
|
|
|
BUGSNAG_CLIENT_KEY: '01625078d856ef022c88f0c78d2364f1',
|
|
|
|
BUGSNAG_SERVER_KEY: 'be8ed0d0fc887d547284cce9e98e60e5',
|
2022-01-13 21:10:33 +00:00
|
|
|
ENABLE_VERSIONED_DOCS: process.env.ENABLE_VERSIONED_DOCS || false,
|
2020-04-06 20:27:35 +00:00
|
|
|
},
|
2021-12-20 21:42:20 +00:00
|
|
|
images: {
|
|
|
|
domains: ['www.datocms-assets.com'],
|
|
|
|
disableStaticImages: true,
|
|
|
|
},
|
2020-04-06 20:27:35 +00:00
|
|
|
})
|