Skip to content

Commit 014edfe

Browse files
authored
Merge pull request #10 from nd2024/main
Fixed useRuntimeConfig is not defined
2 parents 9809d6f + 9b6a500 commit 014edfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime/server/utils/isBanExpired.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { RateLimit } from "../types/RateLimit";
2+
import { useRuntimeConfig } from "#imports";
23

34
const isBanExpired = (req: RateLimit) => {
45
const options = useRuntimeConfig().public.nuxtApiShield;

0 commit comments

Comments
 (0)