3fad03e9ff
* website: bump to docs-page prerelease, support hidden pages * website: switch to hidden pages approach for docs and api-docs * website: remove temporary fix for hidden pages, and related check * website: fix content structure issue with docs/auth/jwt * website: bump to latest pre-release * website: bump to stable docs-page, w next-mdx-remote bump * website: bump to latest markdown-page
22 lines
631 B
JavaScript
22 lines
631 B
JavaScript
const withHashicorp = require('@hashicorp/nextjs-scripts')
|
|
const redirects = require('./redirects.next')
|
|
|
|
module.exports = withHashicorp({
|
|
transpileModules: ['@hashicorp/versioned-docs'],
|
|
})({
|
|
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',
|
|
},
|
|
})
|