Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
carafelix committed Jun 20, 2024
1 parent 9881f56 commit 458c2fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { getRouter } from './router'
export default {
async fetch(request: Request, env: Bindings, ctx: any) {
const { success } = await env.RATE_LIMITER.limit({ key: '/*' })
console.log(env.XATA_API_KEY)
if (!success) {
return new Response(`Failure: Too many Request's. Try again later.`, {
status: 429,
Expand Down
1 change: 0 additions & 1 deletion src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export type Bindings = {
POEMAS_DB: D1Database
TOKENS_KV: KVNamespace
RATE_LIMITER: any
SUDO_SECRET: string
Expand Down

0 comments on commit 458c2fc

Please sign in to comment.