Download next.js/examples/cache-handler-redis/next.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cache-handler-redis/next.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/cache-handler-redis/next.config.js
-
curl -L -o next.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cache-handler-redis/next.config.js
331 Bytes
| /** @type {import('next').NextConfig} */ | |
| const nextConfig = { | |
| cacheHandler: | |
| process.env.NODE_ENV === "production" | |
| ? require.resolve("./cache-handler.js") | |
| : undefined, | |
| env: { | |
| NEXT_PUBLIC_REDIS_INSIGHT_URL: | |
| process.env.REDIS_INSIGHT_URL ?? "http://localhost:8001", | |
| }, | |
| }; | |
| module.exports = nextConfig; | |