next.js/test/e2e/app-dir/next-config-ts/async-function/next.config.ts
next.config.ts14 lines285 B
import type { NextConfig } from 'next'

const nextConfigAsyncFunction = async (phase, { defaultConfig }) => {
  const nextConfig: NextConfig = {
    ...defaultConfig,
    env: {
      foo: phase ? 'foo' : 'bar',
    },
  }
  return nextConfig
}

export default nextConfigAsyncFunction
Quest for Codev2.0.0
/
SIGN IN