Skip to content

Commit cf62fe8

Browse files
committed
fix: REACT_APP_WHITELIST_IPS
1 parent fd0493b commit cf62fe8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
PUBLIC_URL: 'https://static.velog.io/'
3939
REACT_APP_REDIS_HOST: ${{ secrets.REDIS_HOST }}
4040
REACT_APP_CLIENT_V3_HOST: 'https://velog.io'
41+
REACT_APP_WHITELIST_IPS: ${{ secrets.REACT_APP_WHITELIST_IPS }}
4142
CI: false
4243
- name: upload
4344
env:

src/server/rateLimitMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const parseNumber = (value: string | null) => {
88
return parsed;
99
};
1010

11-
const WHITELIST_IPS = (process.env.WHITELIST_IPS ?? '')
11+
const WHITELIST_IPS = (process.env.REACT_APP_WHITELIST_IPS ?? '')
1212
.split(',')
1313
.map((ip) => ip.trim());
1414

0 commit comments

Comments
 (0)