From 1a90e728e48de13be6c73212a1b5458af6b7a182 Mon Sep 17 00:00:00 2001 From: eharkins Date: Thu, 11 Mar 2021 16:48:41 -0800 Subject: [PATCH] update comments and dev server address; this removes an old workaround made obsolete by #280 and updates a comment post- #271 --- static-site/src/components/Datasets/sit-reps.jsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/static-site/src/components/Datasets/sit-reps.jsx b/static-site/src/components/Datasets/sit-reps.jsx index b4eac4472..10876a6c3 100644 --- a/static-site/src/components/Datasets/sit-reps.jsx +++ b/static-site/src/components/Datasets/sit-reps.jsx @@ -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) {