Skip to content

Commit 33debf6

Browse files
author
t
committed
限流請求
1 parent 6dae1fa commit 33debf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/notion/getNotionAPI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from 'path'
44
import { RateLimiter } from './RateLimiter'
55

66
// 限流配置,打包编译阶段避免接口频繁,限制频率
7-
const useRateLimiter = process.env.BUILD_MODE
7+
const useRateLimiter = process.env.BUILD_MODE || process.env.EXPORT
88
const lockFilePath = path.resolve(process.cwd(), '.notion-api-lock')
99
const rateLimiter = new RateLimiter(200, lockFilePath)
1010

0 commit comments

Comments
 (0)