MCPcopy
hub / github.com/vercel/next.js / loadEnvConfig

Method loadEnvConfig

packages/next/src/server/next-server.ts:373–391  ·  view source on GitHub ↗
({
    dev,
    forceReload,
  }: {
    dev: boolean
    forceReload: boolean
  })

Source from the content-addressed store, hash-verified

371 }
372
373 protected loadEnvConfig({
374 dev,
375 forceReload,
376 }: {
377 dev: boolean
378 forceReload: boolean
379 }) {
380 loadEnvConfig(
381 this.dir,
382 dev,
383 Log,
384 forceReload,
385 forceReload
386 ? (envFilePath) => {
387 Log.info(`Reload env: ${envFilePath}`)
388 }
389 : undefined
390 )
391 }
392
393 private async loadCustomCacheHandlers() {
394 const { cacheMaxMemorySize, cacheHandlers } = this.nextConfig

Callers 1

constructorFunction · 0.80

Calls 2

loadEnvConfigFunction · 0.90
infoMethod · 0.45

Tested by

no test coverage detected