Skip to content

Commit

Permalink
chore: env
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed May 1, 2020
1 parent 1763dae commit 9ac49d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
NETEASE_PHONE= #网易云手机号
NETEASE_PASSWORD= #网易云密码
BASEURL=
APIURL=
APIURL=
TRACKING_ID=UA-134193110-1
ASSETPREFIX=https://cdn.jsdelivr.net/gh/Innei/web-cdn@master
4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ module.exports = withImages(
PORT: 2323,
...env,
},
assetPrefix: isProd
? 'https://cdn.jsdelivr.net/gh/Innei/web-cdn@master'
: '',
assetPrefix: isProd ? env.ASSETPREFIX || '' : '',
}),
)

0 comments on commit 9ac49d7

Please sign in to comment.