rsnext/examples/cache-handler-redis/package.json
David Sa 7725047c89
update cache handler version in example (#65330)
### What?
Update the cache-handler package to the latest and changed logic for
opting out of caching during build.

### Why?
The current implementation in the cache-handler-redis example requires
an environment variable check for `REDIS_AVAILABLE` to determine if the
server has already started in order to opt out of caching during build.
This update leverages the `NEXT_PHASE` environment variable instead.

### How?
This updates the environment variable check to leverage the `NEXT_PHASE`
variable so a user doesn't have to manage a new environment variable.

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2024-05-13 14:58:55 -07:00

22 lines
453 B
JSON

{
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
},
"dependencies": {
"next": "^14",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@neshca/cache-handler": "^1.3.1",
"@neshca/json-replacer-reviver": "^1",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"redis": "latest",
"typescript": "^5.3.3"
}
}