Is it possible to have something like:
const currentSeason = 2022
const mappings = new Map([['europe', 'eu'], ['pacific', 'jp']])
to be put in an application wide env/configuration properties?
For the first I could create a .env with e.g.:
PUBLIC_CURRENT_SEASON=2022
but can I do something similar for the mapping?
as in (multiple other places in my code I would like to do something like:
const alpha2Code = mapping.get(name)
PS:
I've used other (non node) server frameworks where this is quite easy to do with e.g. YAML configuration like:
MAPPINGS:
- europe: eu
- pacific: jp
wonder how this can be done best with Astro.