next.js/test/e2e/app-dir/segment-cache/deployment-skew/next.config.js
next.config.js20 lines414 B
const buildId = process.env.NEXT_PUBLIC_BUILD_ID
if (!buildId && !process.env.NEXT_DEPLOYMENT_ID) {
  throw new Error('Neither NEXT_PUBLIC_BUILD_ID nor NEXT_DEPLOYMENT_ID is set')
}

/**
 * @type {import('next').NextConfig}
 */
const nextConfig = {
  distDir: '.next' + (process.env.DIST_DIR || ''),

  generateBuildId:
    buildId &&
    (async () => {
      return buildId
    }),
}

module.exports = nextConfig
Quest for Codev2.0.0
/
SIGN IN