Skip to content

Commit 0645138

Browse files
committed
no api rate limit in dev
1 parent 6cc2fd1 commit 0645138

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ validateConfig(config).then(() => {
127127
return req.headers["x-forwarded-for"].split(",")[0];
128128
return req.ip;
129129
},
130+
skip: () => process.env.NODE_ENV !== "production",
130131
});
131132
app.use(limiter);
132133

0 commit comments

Comments
 (0)