Revert "SSR off"

This reverts commit 42ffa3c51e.
This commit is contained in:
Face 2025-06-27 21:13:48 +03:00
parent 42ffa3c51e
commit 95d6997774
3 changed files with 5 additions and 4 deletions

View file

@ -6,12 +6,12 @@
ref = $bindable(null), ref = $bindable(null),
class: className, class: className,
...restProps ...restProps
}: WithoutChildren<WithElementRef<HTMLAttributes<HTMLSpanElement>>> = $props(); }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();
</script> </script>
<span <div
bind:this={ref} bind:this={ref}
data-slot="skeleton" data-slot="skeleton"
class={cn("bg-accent animate-pulse rounded-md", className)} class={cn("bg-accent animate-pulse rounded-md", className)}
{...restProps} {...restProps}
></span> ></div>

View file

@ -0,0 +1 @@
export const ssr = false;

View file

@ -16,5 +16,5 @@ export async function GET(event) {
route: { id: "/api/hopium/questions/[id]" } route: { id: "/api/hopium/questions/[id]" }
}; };
return await getHopiumQuestion(hopiumEvent as any); return await getHopiumQuestion(hopiumEvent);
} }