Skip to content

Commit 3055ac8

Browse files
committed
fix(api-key): temp fix for api key until we can figure out why its not being loaded from env
1 parent 0624a21 commit 3055ac8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/api/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const $axios2 = axios.create({
1818
const $auth = localStorageCache(0, 'app').get('auth')
1919
const initUser = $auth ? $auth.data : undefined
2020
if (initUser) { $axios2.defaults.headers.common['Authorization'] = `BEARER ${initUser.token}` }
21+
$axios2.defaults.headers.common['api-key'] = 'NB/zpr4xwTT0icF84pp8E0Tu5T+bc+gGkZ6twZT+XGEU3TkX+S7cTJ6GckLJEztx'
2122

2223
/* provided methods */
2324
const $http = (path, opts, handleErrors) => {
@@ -55,11 +56,6 @@ const $http2 = (path, opts, handleErrors) => {
5556
const data = opts.data
5657
delete opts.data
5758

58-
$axios2.defaults.headers.common['api-key'] = process.env.VUE_APP_API_KEY || config.VUE_APP_API_KEY
59-
$axios2.defaults.headers.common['x-api-key'] = process.env.VUE_APP_API_KEY || config.VUE_APP_API_KEY
60-
console.log(process.env.VUE_APP_API_KEY || config.VUE_APP_API_KEY)
61-
$axios2.defaults.withCredentials = true;
62-
6359
let req = (m => {
6460
switch(m) {
6561
case 'post':

0 commit comments

Comments
 (0)