Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
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')
}