Download next.js/test/e2e/import-conditions/pages/api/edge-route.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/import-conditions/pages/api/edge-route.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/import-conditions/pages/api/edge-route.ts
-
curl -L -o edge-route.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/import-conditions/pages/api/edge-route.ts
488 Bytes
| import * as react from 'library-with-exports/react' | |
| import * as serverFavoringBrowser from 'library-with-exports/server-favoring-browser' | |
| import * as serverFavoringEdge from 'library-with-exports/server-favoring-edge' | |
| export const config = { | |
| runtime: 'experimental-edge', | |
| } | |
| export default function handler() { | |
| return Response.json({ | |
| react: react.condition, | |
| serverFavoringBrowser: serverFavoringBrowser.condition, | |
| serverFavoringEdge: serverFavoringEdge.condition, | |
| }) | |
| } | |