mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Prerender games page
This commit is contained in:
parent
865a41bc59
commit
58aa495c93
1 changed files with 3 additions and 1 deletions
|
|
@ -19,7 +19,6 @@ import Search from '~/components/search-stork.vue'
|
||||||
import ThomasCredit from '~/components/thomas-credit.vue'
|
import ThomasCredit from '~/components/thomas-credit.vue'
|
||||||
import AdInline from '~/components/ad-inline.vue'
|
import AdInline from '~/components/ad-inline.vue'
|
||||||
|
|
||||||
|
|
||||||
// Get type and slug from the request path
|
// Get type and slug from the request path
|
||||||
// so that we don't have extra parts for
|
// so that we don't have extra parts for
|
||||||
// urls like /:type/:slug/benchmarks
|
// urls like /:type/:slug/benchmarks
|
||||||
|
|
@ -38,6 +37,9 @@ if ( redirectResponse !== null ) {
|
||||||
|
|
||||||
applyResponseDefaults( Astro )
|
applyResponseDefaults( Astro )
|
||||||
|
|
||||||
|
// Prerender page so it serves statically
|
||||||
|
export const prerender = true
|
||||||
|
|
||||||
const rawKindPage = await DoesItAPI.kind( 'game' )( 1 ).get()
|
const rawKindPage = await DoesItAPI.kind( 'game' )( 1 ).get()
|
||||||
|
|
||||||
// Clean up unused kind data
|
// Clean up unused kind data
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue