From 8a54e8262e555928d4498124c30c9285fa6e81af Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Mon, 17 Aug 2020 23:16:00 -0600 Subject: [PATCH] Add constants file --- src/js/constants.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/js/constants.js diff --git a/src/js/constants.js b/src/js/constants.js new file mode 100644 index 0000000..7c4b2e2 --- /dev/null +++ b/src/js/constants.js @@ -0,0 +1,15 @@ +const DEV_URL = `http://localhost:8080`; +const PROD_URL = `https://oliver.akins.me/top-lists`; + +export const HOME_PAGE = process.env.NODE_ENV === `production` + ? PROD_URL + : DEV_URL + +export const AUTH_REDIRECT = `${HOME_PAGE}` + +export const SPOTIFY_API_BASE = `https://api.spotify.com/v1`; + +export const STORAGE_KEYS = { + token: `top-lists-auth-token`, + state: `top-lists-auth-state` +}; \ No newline at end of file