Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an environment variable for more flexibility for static asset path #525

Merged
merged 3 commits into from
Nov 1, 2021

Conversation

rocketnova
Copy link
Contributor

@rocketnova rocketnova commented Oct 22, 2021

Ticket

Resolves #512

Changes

  • Adds an environment variable ASSET_PREFIX

Context

This PR decouples the static asset path from whether the app is running in an Azure environment vs a non-Azure environment. It introduces a new optional environment variable ASSET_PREFIX that allows us to more easily control the asset prefix (i.e. Azure environments that don't have Front Door url rewriting can still work). The app by default assumes the static asset prefix should be /claimstatus. The environment variable allows us to override the default to be something else (typically should be "").

Testing

  • Locally, ASSET_PREFIX="" should work correctly
  • Locally, not setting an ASSET_PREFIX env var should not work
  • In Azure, ASSET_PREFIX="" should work correctly for environments that don't have Front Door url rewriting enabled
  • In Azure, not setting an ASSET_PREFIX env var should work correctly for environments that do have Front Door url rewriting

README.md Outdated Show resolved Hide resolved
@rocketnova rocketnova merged commit 48390ea into main Nov 1, 2021
@rocketnova rocketnova deleted the rocket/512-assetprefix branch November 1, 2021 18:14
rocketnova added a commit that referenced this pull request Nov 9, 2021
29a66b5 Update application insights to 2.1.8 (#537)
1a14c3f Add a comment to avoid throwing errors from within logger.log (#536)
48390ea Add an environment variable for more flexibility for static asset path (#525)
8e9b3c6 Update to latest chromatic (#533)
17c5766 Update ansi-regex (#535)
f803ae6 Log a UUID for all traces in a single request/response cycle using a pino child logger (#523)
97c30f3 Adds an error catch for null responses
62bfe42 Fine tunes & then hides the Global Header on main
f871c44 Run CI on future and PRs against future & production
a40fbf1 Flexible context root
c89a69c Creates the Global Header
d79ff60 Bump semver-regex from 3.1.2 to 3.1.3 (#499)
6e5dfae Bump nth-check from 2.0.0 to 2.0.1 (#498)
5183e49 Bump prismjs from 1.24.1 to 1.25.0 (#497)
273f813 Bump tmpl from 1.0.4 to 1.0.5 (#496)
3bd7615 Security update: set-value (#495)
f48d2cf Adds storybooks for Maintenance Component & Page under Maintenance
d30ff5e Update dependencies (#488)
2be865a Missing Application Insights environment variable should not disrupt claimant experience (#469)
5ea5fe3 Update modheader instructions in readme
0f32698 Remove default argument values in InfoField (#463)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix or remove the Internal environment
2 participants