Skip to content

Commit 2527c7c

Browse files
committed
Fix build crash when GitHub API returns no tag_name
1 parent a4e4178 commit 2527c7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const response = await fetch(
2323
},
2424
);
2525
const data = await response.json();
26-
const latestVersion = data.tag_name.replace('v', '');
26+
const latestVersion = data.tag_name?.replace('v', '') ?? '4.0.0';
2727

2828
const aeonikProVariants = [
2929
{

0 commit comments

Comments
 (0)