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:
parent
ff1de0ae30
commit
51ca482a8b
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue