Skip to content

Commit

Permalink
increased generations to 3 per day and replaced screenshot in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Mar 5, 2023
1 parent a8b8c39 commit e611fe1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pages/api/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ interface ExtendedNextApiRequest extends NextApiRequest {
};
}

// Create a new ratelimiter, that allows 1 request per 24 hours
// Create a new ratelimiter, that allows 3 requests per 24 hours
const ratelimit = redis
? new Ratelimit({
redis: redis,
limiter: Ratelimit.fixedWindow(1, "1440 m"),
limiter: Ratelimit.fixedWindow(3, "1440 m"),
analytics: true,
})
: undefined;
Expand All @@ -41,7 +41,7 @@ export default async function handler(
res
.status(429)
.json(
"We're temporarily limiting generations to 1 per day because of high traffic. For any questions, email [email protected]"
"We're temporarily limiting generations to 3 per day because of high traffic. For any questions, email [email protected]"
);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion pages/dream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const Home: NextPage = () => {
<span className="font-bold text-gray-300">Note:</span> We're
temporarily{" "}
<span className="font-bold text-gray-300">
limiting generations to 1 per day
limiting generations to 3 per day
</span>{" "}
because of high traffic.
</p>
Expand Down
Binary file modified public/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit e611fe1

@vercel
Copy link

@vercel vercel bot commented on e611fe1 Mar 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.