Skip to content

Instantly share code, notes, and snippets.

@Nivg
Nivg / Products.svelte
Last active November 10, 2023 10:08
Svelte component with Astro.Build Endpoints (as API) + SSR
<script lang="ts">
import { onMount } from "svelte";
import SanityImage from "./SanityImage.svelte";
// for testing purposes
const delay = (time: number) => {
return new Promise((res) => {
setTimeout(res, time);
});
};