Skip to content

Commit

Permalink
Merge pull request #10 from nd2024/main
Browse files Browse the repository at this point in the history
Fixed useRuntimeConfig is not defined
  • Loading branch information
rrd108 authored May 11, 2024
2 parents 9809d6f + 9b6a500 commit 014edfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/server/utils/isBanExpired.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { RateLimit } from "../types/RateLimit";
import { useRuntimeConfig } from "#imports";

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

0 comments on commit 014edfe

Please sign in to comment.