CodeWithAsheville / court-notifications

GNU General Public License v3.0
11 stars 10 forks source link

2021-11-27: Make county in URLs an environment variable #111

Closed ejaxon closed 1 month ago

ejaxon commented 2 years ago

To make it easier to deploy in other NC counties, make the County in the various URLs an environment variable.

jayhill commented 2 years ago

In addition to URLs, "Buncombe" appears in index.html as well as a bunch of the localized .json files. I'm not sure how to leverage an environment variable for those. 🤔

ejaxon commented 2 years ago

I modified the title to reflect the narrow scope of this one, which is just to make the "100" in URLs that represents Buncombe County an environment variable. I'm going to create a separate issue for the bigger question of how you make it at least relatively easy to customize to a different county. The words Buncombe County show up in multiple places that can't directly use environment variables (translation files being another). In addition, some of the information is BC-specific, e.g., when to show up for District Court vs Admin court vs how Superior Court works.

ejaxon commented 2 years ago

Note that there is one place in the client where the 100 code shows up: in the computeFullSearchUrl function - that link needs to be provided by the server.