File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,15 @@ jobs:
16
16
uses : actions/setup-node@v3
17
17
with :
18
18
node-version : 14.21
19
- - name : Create .env
20
- run : |
21
- echo VUE_APP_API_MODE=production >> .env
22
- echo VUE_APP_FIREBASE_CONFIG=$FIREBASE_CONFIG_PROD >> .env
23
- echo VUE_FIREBASE_VAPID_KEY=$FIREBASE_VAPID_KEY_PROD >> .env
24
- echo VUE_CHANNEL_PLUGIN_KEY=$CHANNEL_PLUGIN_KEY >> .env
25
- env :
26
- FIREBASE_CONFIG_PROD : ${{ secrets.FIREBASE_CONFIG_PROD }}
27
- FIREBASE_VAPID_KEY_PROD : ${{ secrets.FIREBASE_VAPID_KEY_PROD }}
28
- CHANNEL_PLUGIN_KEY : ${{ secrets.CHANNEL_PLUGIN_KEY }}
29
19
- name : Install dependencies
30
20
run : npm ci
31
21
- name : Build
32
22
run : npm run build
23
+ env :
24
+ VUE_APP_API_MODE : production
25
+ VUE_APP_FIREBASE_CONFIG : ${{ secrets.FIREBASE_CONFIG_PROD }}
26
+ VUE_FIREBASE_VAPID_KEY : ${{ secrets.FIREBASE_VAPID_KEY_PROD }}
27
+ VUE_CHANNEL_PLUGIN_KEY : ${{ secrets.CHANNEL_PLUGIN_KEY }}
33
28
34
29
- name : Configure AWS Credentials
35
30
uses : aws-actions/configure-aws-credentials@v1
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const apiUrl = (function () {
11
11
} else if ( process . env . VUE_APP_API_MODE === 'staging' ) {
12
12
return 'https://ara-staging-api.sparcs.org'
13
13
} else if ( process . env . NODE_ENV === 'production' ) {
14
- return 'https://newara-api .sparcs.org'
14
+ return 'https://newara.sparcs.org'
15
15
} else if ( process . env . NODE_ENV === 'staging' ) {
16
16
return 'https://ara-staging-api.sparcs.org'
17
17
} else if ( process . env . NODE_ENV === 'development' ) {
You can’t perform that action at this time.
0 commit comments