Skip to content

Commit

Permalink
Merge pull request #42 from tkgnm/try-isr-again
Browse files Browse the repository at this point in the history
Update +layout.server.ts
  • Loading branch information
tkgnm authored Aug 28, 2023
2 parents 4cfada0 + db9f1f5 commit a865a15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export const config = {
expiration: 60
}
};

export const prerender = true;

const fetchGalleryImages = async (): Promise<CoverImage[]> => {
const data = await getImageData();
return data.props.galleryItems.map((item: any) => item.image);
Expand Down

0 comments on commit a865a15

Please sign in to comment.