Skip to content

Commit

Permalink
update to handle problem with process.env in Azure Static Webapps
Browse files Browse the repository at this point in the history
  • Loading branch information
bklingen-calpoly committed Apr 23, 2024
1 parent dee08d4 commit fb436bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/MyApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import Form from "./Form";
import axios from "axios";

function MyApp() {
const API_BASE_URL = process.env.REACT_APP_API_BASE_URL;
// const API_BASE_URL = 'http://localhost:5000/users';
// TODO: .env doesn't work with Azure Static Web Apps, will fix later
// const API_BASE_URL = process.env.REACT_APP_API_BASE_URL;
// const API_BASE_URL = 'http://localhost:8000/users';
// const API_BASE_URL = "https://csc307-api-bklingen.herokuapp.com/users";
// const API_BASE_URL = "https://csc307-backend.azurewebsites.net/users";
const API_BASE_URL = "https://csc307-backend.azurewebsites.net/users";
// const API_BASE_URL = "https://azure-csc307-api.azurewebsites.net/users";

const [characters, setCharacters] = useState([]);
Expand Down

0 comments on commit fb436bb

Please sign in to comment.