File tree 7 files changed +17
-14
lines changed
7 files changed +17
-14
lines changed Original file line number Diff line number Diff line change
1
+ VUE_APP_API_URL = http://localhost:8000/api
2
+ VUE_APP_DISCORD_API_URL = http://localhost:4000/api
Original file line number Diff line number Diff line change
1
+ VUE_APP_API_URL = https://aaaimx-admin.herokuapp.com/api
2
+ VUE_APP_DISCORD_API_URL = https://aaaimx-discord.herokuapp.com/api
Original file line number Diff line number Diff line change
1
+ VUE_APP_API_URL = https://aaaimx-admin-stage.herokuapp.com/api
2
+ VUE_APP_DISCORD_API_URL = https://aaaimx-discord.herokuapp.com/api
Original file line number Diff line number Diff line change 3
3
"version" : " 1.4.2" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
- "serve" : " cross-env NODE_ENV=development vue-cli-service serve" ,
7
- "prod " : " cross-env NODE_ENV=prod vue-cli-service serve" ,
6
+ "serve" : " vue-cli-service serve --mode development " ,
7
+ "stage " : " vue-cli-service serve --mode staging " ,
8
8
"build" : " vue-cli-service build --modern" ,
9
9
"lint" : " vue-cli-service lint" ,
10
10
"build:gh-pages" : " cross-env DEPLOY_ENV=GH_PAGES npm run build" ,
21
21
"chart.js" : " ^2.9.3" ,
22
22
"core-js" : " ^3.6.5" ,
23
23
"dayjs" : " ^1.8.35" ,
24
+ "file-saver" : " ^2.0.5" ,
24
25
"js-cookie" : " ^2.2.1" ,
26
+ "jspdf" : " ^2.2.0" ,
25
27
"jwt-decode" : " ^3.1.2" ,
26
28
"lodash" : " ^4.17.20" ,
27
29
"numeral" : " ^2.0.6" ,
33
35
"vue-copy-to-clipboard" : " ^1.0.3" ,
34
36
"vue-linkify" : " ^1.0.1" ,
35
37
"vue-router" : " ^3.4.3" ,
36
- "vuex" : " ^3.5.1"
38
+ "vuex" : " ^3.5.1" ,
39
+ "xlsx" : " ^0.16.9"
37
40
},
38
41
"devDependencies" : {
39
42
"@vue/cli-plugin-babel" : " ~4.5.4" ,
Original file line number Diff line number Diff line change 1
1
import axios from 'axios'
2
2
import { getToken } from '@/utils/auth'
3
-
3
+ console . log ( process . env . VUE_APP_API_URL , process . env . NODE_ENV )
4
4
// create an axios instance
5
5
const service = axios . create ( {
6
- baseURL :
7
- process . env . NODE_ENV === 'development'
8
- ? 'http://127.0.0.1:8000/api'
9
- : 'https://aaaimx-admin.herokuapp.com/api' , // url = base url + request url
6
+ baseURL : process . env . VUE_APP_API_URL , // url = base url + request url
10
7
// withCredentials: true, // send cookies when cross-domain requests
11
8
mode : 'cors' ,
12
9
credentials : 'same-origin' ,
Original file line number Diff line number Diff line change 1
1
import axios from 'axios'
2
-
2
+ console . log ( process . env . VUE_APP_DISCORD_API_URL , process . env . NODE_ENV )
3
3
// create an axios instance
4
4
const service = axios . create ( {
5
- baseURL :
6
- process . env . NODE_ENV === 'development'
7
- ? 'http://127.0.0.1:4000/api'
8
- : 'https://aaaimx-discord.herokuapp.com/api' , // url = base url + request url
5
+ baseURL : process . env . VUE_APP_DISCORD_API_URL , // url = base url + request url
9
6
// withCredentials: true, // send cookies when cross-domain requests
10
7
mode : 'cors' ,
11
8
timeout : 10000 ,
You can’t perform that action at this time.
0 commit comments