nuxt-og-image 2.0.0-beta.49 → 2.0.0-beta.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -7,7 +7,7 @@ import twemoji from "twemoji";
|
|
|
7
7
|
import { fetchOptions, useHostname } from "../utils.mjs";
|
|
8
8
|
import { useRuntimeConfig } from "#imports";
|
|
9
9
|
export default defineEventHandler(async (e) => {
|
|
10
|
-
const { fonts, defaults } = useRuntimeConfig()["nuxt-og-image"];
|
|
10
|
+
const { fonts, defaults, satoriOptions } = useRuntimeConfig()["nuxt-og-image"];
|
|
11
11
|
const query = getQuery(e);
|
|
12
12
|
const path = withBase(query.path || "/", useRuntimeConfig().app.baseURL);
|
|
13
13
|
const scale = query.scale;
|
|
@@ -95,12 +95,12 @@ img.emoji {
|
|
|
95
95
|
{
|
|
96
96
|
src: "https://cdn.tailwindcss.com"
|
|
97
97
|
},
|
|
98
|
-
// @todo merge with users tailwind
|
|
99
98
|
{
|
|
100
99
|
innerHTML: `tailwind.config = {
|
|
101
100
|
corePlugins: {
|
|
102
101
|
preflight: false,
|
|
103
|
-
}
|
|
102
|
+
},
|
|
103
|
+
theme: ${JSON.stringify(satoriOptions.tailwindConfig.theme || {})}
|
|
104
104
|
}`
|
|
105
105
|
}
|
|
106
106
|
],
|