Skip to content

Commit

Permalink
fix(api-key): temp fix for api key until we can figure out why its no…
Browse files Browse the repository at this point in the history
…t being loaded from env
  • Loading branch information
akinsey committed Jan 17, 2025
1 parent 0624a21 commit 3055ac8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const $axios2 = axios.create({
const $auth = localStorageCache(0, 'app').get('auth')
const initUser = $auth ? $auth.data : undefined
if (initUser) { $axios2.defaults.headers.common['Authorization'] = `BEARER ${initUser.token}` }
$axios2.defaults.headers.common['api-key'] = 'NB/zpr4xwTT0icF84pp8E0Tu5T+bc+gGkZ6twZT+XGEU3TkX+S7cTJ6GckLJEztx'

/* provided methods */
const $http = (path, opts, handleErrors) => {
Expand Down Expand Up @@ -55,11 +56,6 @@ const $http2 = (path, opts, handleErrors) => {
const data = opts.data
delete opts.data

$axios2.defaults.headers.common['api-key'] = process.env.VUE_APP_API_KEY || config.VUE_APP_API_KEY
$axios2.defaults.headers.common['x-api-key'] = process.env.VUE_APP_API_KEY || config.VUE_APP_API_KEY
console.log(process.env.VUE_APP_API_KEY || config.VUE_APP_API_KEY)
$axios2.defaults.withCredentials = true;

let req = (m => {
switch(m) {
case 'post':
Expand Down

0 comments on commit 3055ac8

Please sign in to comment.