Skip to content

Commit

Permalink
chore: use diff
Browse files Browse the repository at this point in the history
  • Loading branch information
zaida04 committed Jun 7, 2024
1 parent a2f2282 commit 5743f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/contactme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const POST: APIRoute = async ({ request, clientAddress }) => {
return new Response(JSON.stringify(contactData.error), { status: 400 })
}

if (!import.meta.env.DEV) {
if (process.env.NODE_ENV === "production") {
const identifier = clientAddress ?? body.email;
const { success, remaining } = await rateLimit(identifier);
console.log(remaining);
Expand Down

0 comments on commit 5743f3d

Please sign in to comment.