Skip to content

Commit

Permalink
fix: get version for production
Browse files Browse the repository at this point in the history
  • Loading branch information
dominickolbe committed Aug 25, 2021
1 parent 40e22ed commit 89d1a73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
APP_VERSION=

API_HOST=http://api.openweathermap.org/data/2.5/weather
API_KEY=
3 changes: 2 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
@@ -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";

0 comments on commit 89d1a73

Please sign in to comment.