Skip to content

Commit

Permalink
Merge pull request #282 from nextstrain/cleanup
Browse files Browse the repository at this point in the history
update comments and dev server address;
  • Loading branch information
jameshadfield authored Apr 10, 2021
2 parents d733806 + 1a90e72 commit d3343ce
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 d3343ce

Please sign in to comment.