Satori only for server

This commit is contained in:
Shivam Meena
2022-12-19 21:54:58 +05:30
parent 27ef7fc5ec
commit 90854000e8
3 changed files with 4 additions and 3 deletions

View File

@@ -24,8 +24,8 @@
<!-- secondary nav --> <!-- secondary nav -->
<div class="hidden md:flex items-center space-x-1"> <div class="hidden md:flex items-center space-x-1">
<a href="" class="py-5 px-3 underline">Docs</a> <a href="https://github.com/etherCorps/sveltekit-og/#readme" target="_blank" rel="noreferrer" class="py-5 px-3 underline">Docs</a>
<a href="" class="py-5 px-3 underline">Github</a> <a href="https://github.com/etherCorps/sveltekit-og" target="_blank" rel="noreferrer" class="py-5 px-3 underline">Github</a>
</div> </div>
<!-- mobile button goes here --> <!-- mobile button goes here -->

View File

@@ -76,4 +76,4 @@ type ImageOptions = {
type ImageResponseType = typeof ImageResponse; type ImageResponseType = typeof ImageResponse;
export { componentToImageResponse, ImageResponse, toReactElement, type ImageResponseType }; export { componentToImageResponse, ImageResponse, toReactElement, satori, type ImageResponseType };

View File

@@ -1,4 +1,5 @@
import { toReactElement, satori } from '$lib'; import { toReactElement, satori } from '$lib';
const htmlString = ` const htmlString = `
<div tw="bg-gray-50 flex w-full"> <div tw="bg-gray-50 flex w-full">
<div tw="flex flex-col md:flex-row w-full py-12 px-4 md:items-center justify-between p-8"> <div tw="flex flex-col md:flex-row w-full py-12 px-4 md:items-center justify-between p-8">