satori
satori copied to clipboard
Access to custom Tailwind config through `ImageResponse`
@marcbouchenoire @shuding Do you know if it's possible to access this config option through `ImageResponse`? Just trying to figure out how to use it with the `opengraph-image` files in Next 13. Thanks!
Originally posted by @kieranm in https://github.com/vercel/satori/issues/340#issuecomment-1571925362
@shuding is there any plans to work on this, or any workaround I can make? I was trying to use ImageResponse
from next/server
, but since it didn't work, I just tried to directly use satori
, which caused an issue:
- error node_modules/.pnpm/@[email protected]/node_modules/@shuding/opentype.js/dist/opentype.module.js (10279:22) @ p
- error Cannot read properties of undefined (reading '271')
Hi @kevinwolfcr @shuding. Have you found any workaround on this?
@dima-kov I fixed it using tw-to-css
. Look at this two files:
- https://github.com/kevinwolfcr/website/blob/main/src/utils/ui/ui.utils.ts
- https://github.com/kevinwolfcr/website/blob/main/src/utils/og/og.utils.ts