We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dae1fa commit 33debf6Copy full SHA for 33debf6
lib/notion/getNotionAPI.js
@@ -4,7 +4,7 @@ import path from 'path'
4
import { RateLimiter } from './RateLimiter'
5
6
// 限流配置,打包编译阶段避免接口频繁,限制频率
7
-const useRateLimiter = process.env.BUILD_MODE
+const useRateLimiter = process.env.BUILD_MODE || process.env.EXPORT
8
const lockFilePath = path.resolve(process.cwd(), '.notion-api-lock')
9
const rateLimiter = new RateLimiter(200, lockFilePath)
10
0 commit comments