Prepping save file support

This commit is contained in:
2025-03-17 15:46:35 -05:00
parent 85615121b2
commit 4be5dadb24
3 changed files with 39 additions and 14 deletions

View File

@@ -7,12 +7,6 @@ import Error500, { Error500Props } from '../500';
import { extendFragment, includeFragment } from '@/lib/fragment';
import { Paginated, paginationQuery } from '@/lib/page';
type Game = {
id: string;
name: string;
system: string;
};
type PageProps = {
games:Paginated<GameLight>|null;
} | Error500Props;
@@ -21,7 +15,9 @@ export const getServerSideProps: GetServerSideProps<PageProps> = async () => {
try {
const client = await apiClientGet();
const res = await client.query<{ games:Paginated<GameLight> }>({
variables: { },
variables: {
after: null,
},
query: gql`
${includeFragment(GameLightFragment)}
query getGames {