0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Prevents unhandledrejection error when checking for latest Astro version (#11013)

* fix: prevent error appear when check latest version fail(#11012)

* Resolve review problem
This commit is contained in:
Shiina 2024-05-13 22:07:17 +08:00 committed by GitHub
parent 18b78ec881
commit 4ea38e7333
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"astro": patch
---
Prevents unhandledrejection error when checking for latest Astro version

View file

@ -73,7 +73,7 @@ export default async function dev(inlineConfig: AstroInlineConfig): Promise<DevS
);
}
}
});
}).catch(() => { });
} catch (e) {
// Just ignore the error, we don't want to block the dev server from starting and this is just a nice-to-have feature
}