next.js/test/e2e/app-dir/next-config-ts-native-ts/dynamic-import-esm/next.config.ts
next.config.ts20 lines378 B
import type { NextConfig } from 'next'

// top-level await will only work in Native TS mode.
// This is to ensure that the test is running in Native TS mode.
await Promise.resolve()

const nextConfig = async () => {
  const { foo } = await import('./foo.ts')

  const nextConfig: NextConfig = {
    env: {
      foo,
    },
  }

  return nextConfig
}

export default nextConfig
Quest for Codev2.0.0
/
SIGN IN