diff --git a/.env.example b/.env.example index 9a0d116..c1a4d96 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,4 @@ +APP_VERSION= + API_HOST=http://api.openweathermap.org/data/2.5/weather API_KEY= \ No newline at end of file diff --git a/src/config.ts b/src/config.ts index 34c7af8..900d767 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,2 +1,3 @@ export const APP_NAME = "whats-the-weather"; -export const APP_VERSION = process.env.npm_package_version ?? "unknown"; +export const APP_VERSION = + (process.env.APP_VERSION || process.env.npm_package_version) ?? "unknown";