diff --git a/Dockerfile b/Dockerfile index ec261bd26..4ff9444f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN yarn build FROM nginx ARG REACT_APP_VERSION_STRING -ENV REACT_APP_VERSION_STRING=$VITE_VERSION_STRING +ENV REACT_APP_VERSION_STRING=$REACT_APP_VERSION_STRING COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh COPY --from=build-deps /opt/app/dist /usr/share/nginx/html diff --git a/README.md b/README.md index a3eaf7114..9b074575d 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ The Pain Management Summary can be deployed as static web resources on any HTTP 5. Modify the `clientId` in `public/launch-context.json` to match the unique client ID you registered with the EHR from which this app will be launched 6. NOTE: The launch context contains `"completeInTarget": true`. This is needed if you are running in an environment that initializes the app in a separate window (such as the public SMART sandbox). It can be safely removed in other cases. 7. If you've set up an analytics endpoint (see below), set the `analytics_endpoint` and `x_api_key` in `public/config.json` -8. If you'll be launching the app from an Epic EHR, modify `.env` to set `REACT_APP_SUPPORTED_QUERIES` to `true` +8. If you'll be launching the app from an Epic EHR, modify `.env` to set `REACT_APP_EPIC_SUPPORTED_QUERIES` to `true` a. This modifies some queries based on Epic-specific requirements 9. Run `yarn build` to compile the code to static files in the `dist` folder 10. Deploy the output from the `dist` folder to a standard web server diff --git a/docker-compose.yaml b/docker-compose.yaml index 46b1d9f3c..167b40c73 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -7,7 +7,7 @@ services: args: # set build arg from environment variable with same name # add default to squelch warnings - VITE_VERSION_STRING: ${VITE_VERSION_STRING:-local} + REACT_APP_VERSION_STRING: ${REACT_APP_VERSION_STRING:-local} ports: # allow override of published port diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 6ee7ecdfe..746702800 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -27,7 +27,7 @@ write_env_to_json() { local json_file="$1" # only write environment variables containing "REACT_" - local json_contents="{$(printenv | grep VITE_ | sed 's/^\|$/"/g' | sed 's|=|":"|' | paste -sd, -)}" + local json_contents="{$(printenv | grep REACT_ | sed 's/^\|$/"/g' | sed 's|=|":"|' | paste -sd, -)}" echo "$json_contents" > "$json_file" }