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/08f236e0a06edbc9e8d7e8aeceed04f5e2bdafe1/src/apiClient.js
- Command line
-
hf download hf://spaces/FrederickSundeep/CodeIDE@08f236e0a06edbc9e8d7e8aeceed04f5e2bdafe1/src/apiClient.js
-
curl -L -o apiClient.js https://huggingface.co/spaces/FrederickSundeep/CodeIDE/resolve/08f236e0a06edbc9e8d7e8aeceed04f5e2bdafe1/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, | |
| }); | |