Skip to content

Commit 9037b53

Browse files
authored
chore: add timeout to requests (#391)
* chore: add timeout to fetch requests * 1.20.1
1 parent 173333c commit 9037b53

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "superplate-cli",
3-
"version": "1.20.0",
3+
"version": "1.20.1",
44
"description": "The frontend boilerplate with superpowers",
55
"license": "MIT",
66
"repository": {

src/saofile.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ const saoConfig: GeneratorConfig = {
188188
"https://telemetry.refine.dev/projects",
189189
{
190190
method: "POST",
191+
timeout: 1000,
191192
body: JSON.stringify({
192193
email: emailPromptResult.userEmail || answers.userEmail,
193194
answers: {
@@ -369,6 +370,7 @@ const saoConfig: GeneratorConfig = {
369370
try {
370371
await fetch("https://telemetry.refine.dev/superplate", {
371372
method: "POST",
373+
timeout: 1000,
372374
body: JSON.stringify({
373375
event: "generate",
374376
properties: {

0 commit comments

Comments
 (0)