Feat : EXPERIMENTAL : add SSR
release-tag / release-image (push) Successful in 36s

This commit is contained in:
2024-07-21 19:01:07 +02:00
parent ba48570833
commit cfbaeca52b
7 changed files with 268 additions and 235 deletions
+3
View File
@@ -13,7 +13,10 @@ export async function getLobby() {
const config = useRuntimeConfig();
const req = await useFetch<Array<Game>>(config.public.endpoint + "/games", {
credentials: "include",
server: false,
});
// await req.execute();
await req.execute();
if (req.data.value == null) {
throw new Error("Lobby answer is empty");
}