usagov / test-at-home

Other
8 stars 4 forks source link

Create env var to disable SmartyStreets on frontend #89

Closed hursey013 closed 2 years ago

hursey013 commented 2 years ago

In the event the address validation API needs to be turned off, have an env var to disable it.

hartsick commented 2 years ago

@hursey013 The env var I'm using for backend and think that we should use for this is DISABLE_SMARTY_STREETS. When disabled, it will be set to "true". Once this PR is merged, we'll have a way of setting on deploy

hursey013 commented 2 years ago

@hursey013 The env var I'm using for backend and think that we should use for this is DISABLE_SMARTY_STREETS. When disabled, it will be set to "true". Once this PR is merged, we'll have a way of setting on deploy

Sounds good, I wanted to capture this because I'm not entirely sure how to get access to the env vars within Javascript + Webpack, so need to do a little digging.