This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This cache handler shim ensures compatibility with Redis, by converting | |
* buffers to strings on save and back to buffers on read, since the data | |
* is stored as JSON. | |
* | |
* This shim is a temporary workaround until Next 15 support is added to | |
* @neshca/cache-handler: | |
* https://github.com/caching-tools/next-shared-cache/pull/969 | |
* | |
* @param {import("@neshca/cache-handler").Handler} handler - The original cache handler to wrap. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copied from https://github.com/OneGraph/graphiql-explorer (0.4.5) | |
* We fork because we need to support customizable fields and could not wait for | |
* the PR process to finish. Also converted Flow type to TypeScript. | |
*/ | |
import { Tooltip } from 'antd'; | |
import prettier from 'prettier/standalone'; | |
import parserGraphql from 'prettier/parser-graphql'; | |
import React, { Fragment } from 'react'; |