next.js/test/e2e/app-dir/next-config-ts-native-mts/import-from-node-modules/next.config.mts
next.config.mts21 lines397 B
import type { NextConfig } from 'next'
import cjs from 'cjs'
import mjs from 'mjs'
import jsCJS from 'js-cjs'
import jsESM from 'js-esm'

// 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: NextConfig = {
  env: {
    cjs,
    mjs,
    jsCJS,
    jsESM,
  },
}

export default nextConfig
Quest for Codev2.0.0
/
SIGN IN