next.js/test/e2e/app-dir/next-config-ts-native-ts/import-json/next.config.ts
next.config.ts13 lines314 B
import type { NextConfig } from 'next'
import fooJson from './foo.json' with { type: 'json' }

// 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()

export default {
  env: {
    foo: fooJson.foo,
  },
} satisfies NextConfig
Quest for Codev2.0.0
/
SIGN IN