Skip to content

Commit 89f85e9

Browse files
committed
warning for token
1 parent e62fb72 commit 89f85e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

public/assets/app-config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ window._ENV_ = {
77
VUE_APP_GITHUB_TOKEN: "${VUE_APP_GITHUB_TOKEN}",
88
VUE_APP_GITHUB_API: "${VUE_APP_GITHUB_API}",
99
};
10+
11+
if(window._ENV_.VUE_APP_GITHUB_TOKEN) {
12+
console.warn('Using hardcoded token. This is not recommended for production.');
13+
}

0 commit comments

Comments
 (0)