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:
parent
18b78ec881
commit
4ea38e7333
2 changed files with 6 additions and 1 deletions
5
.changeset/warm-schools-applaud.md
Normal file
5
.changeset/warm-schools-applaud.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Prevents unhandledrejection error when checking for latest Astro version
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue