Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cuddly-buckets-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-email/preview-server": patch
---

Increases the sleep time between bulk templates import to avoid exceeding the default API rate limit of 2 requests per second
3 changes: 2 additions & 1 deletion packages/preview-server/src/components/toolbar/resend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ export function ResendIntegration({
);
}

await sleep(200);
// This avoid exceeding the default rate limit of 2 requests per second
await sleep(600);
} catch (error) {
console.error('Error processing %s:', emailSlug, error);
setItems((prevItems) =>
Expand Down
Loading