0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00

fix: comment redirect to start

This commit is contained in:
bholmesdev 2022-03-30 16:32:11 -04:00
parent ff1de0ae30
commit 51ca482a8b

View file

@ -7,9 +7,9 @@ const photoInfo = await fetch(
`https://api.nasa.gov/planetary/apod?date=${product}&api_key=${NASA_API_KEY}`
).then((res) => res.json());
if (photoInfo?.code >= 400) {
return Astro.redirect('/')
}
// if (photoInfo?.code >= 400) {
// return Astro.redirect('/')
// }
type PhotoInfo = {
title: string;