github.com/ilhicas/nomad@v0.11.8/website/next.config.js (about)

     1  const withHashicorp = require('@hashicorp/nextjs-scripts')
     2  const path = require('path')
     3  
     4  module.exports = withHashicorp({
     5    defaultLayout: true,
     6    transpileModules: ['is-absolute-url', '@hashicorp/react-mega-nav'],
     7    mdx: { resolveIncludes: path.join(__dirname, 'pages/partials') },
     8  })({
     9    exportTrailingSlash: true,
    10    experimental: {
    11      modern: true,
    12      rewrites: () => [
    13        {
    14          source: '/api/:path*',
    15          destination: '/api-docs/:path*',
    16        },
    17      ],
    18    },
    19    env: {
    20      HASHI_ENV: process.env.HASHI_ENV || 'development',
    21      SEGMENT_WRITE_KEY: 'qW11yxgipKMsKFKQUCpTVgQUYftYsJj0',
    22      BUGSNAG_CLIENT_KEY: '4fa712dfcabddd05da29fd1f5ea5a4c0',
    23      BUGSNAG_SERVER_KEY: '61141296f1ba00a95a8788b7871e1184',
    24    },
    25  })