Download frontend/node_modules/next/dist/esm/server/cache-dir.js from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/esm/server/cache-dir.js
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/next/dist/esm/server/cache-dir.js
-
curl -L -o cache-dir.js https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/esm/server/cache-dir.js
324 Bytes
| import path from 'path'; | |
| import isDockerFunction from 'next/dist/compiled/is-docker'; | |
| export function getStorageDirectory(distDir) { | |
| const isLikelyEphemeral = isDockerFunction(); | |
| if (isLikelyEphemeral) { | |
| return undefined; | |
| } | |
| return path.join(distDir, 'cache'); | |
| } | |
| //# sourceMappingURL=cache-dir.js.map |