Download next.js/packages/next/src/lib/is-edge-runtime.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 260 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/lib/is-edge-runtime.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/lib/is-edge-runtime.ts
-
curl -L -o is-edge-runtime.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/lib/is-edge-runtime.ts
260 Bytes
| import type { ServerRuntime } from '../types' | |
| import { SERVER_RUNTIME } from './constants' | |
| export function isEdgeRuntime(value?: string): value is ServerRuntime { | |
| return ( | |
| value === SERVER_RUNTIME.experimentalEdge || value === SERVER_RUNTIME.edge | |
| ) | |
| } | |