From 58aa495c93cc2ea5b7f0107a4e12e2433c962681 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 11 Feb 2023 16:48:32 -0600 Subject: [PATCH] Prerender games page --- src/pages/games.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/games.astro b/src/pages/games.astro index c9b04c2..f495657 100644 --- a/src/pages/games.astro +++ b/src/pages/games.astro @@ -19,7 +19,6 @@ import Search from '~/components/search-stork.vue' import ThomasCredit from '~/components/thomas-credit.vue' import AdInline from '~/components/ad-inline.vue' - // Get type and slug from the request path // so that we don't have extra parts for // urls like /:type/:slug/benchmarks @@ -38,6 +37,9 @@ if ( redirectResponse !== null ) { applyResponseDefaults( Astro ) +// Prerender page so it serves statically +export const prerender = true + const rawKindPage = await DoesItAPI.kind( 'game' )( 1 ).get() // Clean up unused kind data