Skip to content

Commit 6b076bc

Browse files
committed
load base api url from workflow
1 parent f47d358 commit 6b076bc

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/cd.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
env:
99
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
10+
BASE_API_URL: ${{ secrets.BASE_API_URL }}
11+
BASE_SOCKET_URL: ${{ secrets.BASE_SOCKET_URL }}
1012

1113
jobs:
1214
cd:

‎front/config/webpack/prod.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module.exports = merge(base, {
2828
plugins: [
2929
new Dotenv({
3030
path: 'prod.env',
31+
systemvars: true,
3132
}),
3233
new MiniCssExtractPlugin({
3334
filename: './css/[chunkhash].[name].css',

‎front/prod.env‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
NODE_ENV=production
2-
BASE_API_URL=http://localhost:8080
3-
BASE_SOCKET_URL=http://localhost:3001

0 commit comments

Comments
 (0)