mirror of
https://github.com/LukeHagar/sveltekit-og.git
synced 2025-12-06 12:47:49 +00:00
Satori only for server
This commit is contained in:
@@ -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 -->
|
||||||
|
|||||||
@@ -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 };
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user