next.js/packages/next/src/server/cache-dir.ts
cache-dir.ts12 lines299 B
import path from 'path'
import isDockerFunction from 'next/dist/compiled/is-docker'

export function getStorageDirectory(distDir: string): string | undefined {
  const isLikelyEphemeral = isDockerFunction()

  if (isLikelyEphemeral) {
    return undefined
  }
  return path.join(distDir, 'cache')
}
Quest for Codev2.0.0
/
SIGN IN