Download spectrum/src/api/constants.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/api/constants.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/api/constants.js
-
curl -L -o constants.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/api/constants.js
390 Bytes
| // @flow | |
| export const IS_PROD = process.env.NODE_ENV === 'production'; | |
| export const SERVER_URL = IS_PROD | |
| ? // In production we want to redirect to /whatever | |
| `` | |
| : // In development we gotta redirect to localhost:3001/whatever tho | |
| 'http://localhost:3001'; | |
| export const CLIENT_URL = IS_PROD | |
| ? `${window.location.protocol}//${window.location.host}` | |
| : 'http://localhost:3000'; | |