Spaces:
Running
Running
Download src/apiClient.js from FrederickSundeep/CodeIDE: direct link, hf CLI and curl.
- Browser
- Download file 165 Bytes
-
https://huggingface.co/spaces/FrederickSundeep/CodeIDE/resolve/060ec76bad02fa232e5c104f8364a3ef3d49a8e9/src/apiClient.js
- Command line
-
hf download hf://spaces/FrederickSundeep/CodeIDE@060ec76bad02fa232e5c104f8364a3ef3d49a8e9/src/apiClient.js
-
curl -L -o apiClient.js https://huggingface.co/spaces/FrederickSundeep/CodeIDE/resolve/060ec76bad02fa232e5c104f8364a3ef3d49a8e9/src/apiClient.js
165 Bytes
| import axios from "axios"; | |
| const API_BASE = process.env.REACT_APP_API_BASE; // 👈 CRA uses REACT_APP_ | |
| export const api = axios.create({ | |
| baseURL: API_BASE, | |
| }); | |