Skip to content

Commit

Permalink
update comments and dev server address;
Browse files Browse the repository at this point in the history
this removes an old workaround made
obsolete by #280 and updates a comment
post- #271
  • Loading branch information
eharkins authored and jameshadfield committed Apr 10, 2021
1 parent d733806 commit 1a90e72
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions static-site/src/components/Datasets/sit-reps.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,11 @@ import { FlexCenter } from "../../layouts/generalComponents";
import * as splashStyles from "../splash/styles";
import CollapseTitle from "../Misc/collapse-title";

const charonGetAvailableAddress = process.env.NODE_ENV === "development" ?
"http://localhost:5000/charon/getAvailable" :
"/charon/getAvailable";
const charonGetAvailableAddress = "/charon/getAvailable";

/**
* A component to render all situation reports for a given pathogen.
* Data is obtained on page load by a API call to /charon/getAvailable.
*
* Note for testing: when using the garsby dev server (i.e. `npm run dev`)
* the charon API is not available. In this case, the request will be made
* to localhost:5000 which allows you to run the nextstrain.org server
* as a separate process.
*/
class Index extends React.Component {
constructor(props) {
Expand Down

0 comments on commit 1a90e72

Please sign in to comment.