Add constants file
This commit is contained in:
parent
afb10d579e
commit
8a54e8262e
1 changed files with 15 additions and 0 deletions
15
src/js/constants.js
Normal file
15
src/js/constants.js
Normal file
|
|
@ -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`
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue