nuxt-og-image 1.4.4 → 1.4.5
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.d.ts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -4
- package/package.json +1 -1
package/dist/module.d.ts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -215,7 +215,8 @@ const module = defineNuxtModule({
|
|
|
215
215
|
fonts: [],
|
|
216
216
|
satoriOptions: {},
|
|
217
217
|
experimentalInlineWasm: process.env.NITRO_PRESET === "netlify-edge" || nuxt.options.nitro.preset === "netlify-edge" || false,
|
|
218
|
-
experimentalRuntimeBrowser: false
|
|
218
|
+
experimentalRuntimeBrowser: false,
|
|
219
|
+
playground: process.env.NODE_ENV === "development" || nuxt.options.dev
|
|
219
220
|
};
|
|
220
221
|
},
|
|
221
222
|
async setup(config, nuxt) {
|
|
@@ -269,7 +270,7 @@ export {}
|
|
|
269
270
|
}
|
|
270
271
|
});
|
|
271
272
|
});
|
|
272
|
-
if (
|
|
273
|
+
if (config.playground) {
|
|
273
274
|
const playgroundDir = distResolve("./client");
|
|
274
275
|
const {
|
|
275
276
|
middleware: rpcMiddleware
|
|
@@ -357,7 +358,7 @@ export default function() {
|
|
|
357
358
|
if (edgeProvidersSupported.includes(_nitro.options.preset)) {
|
|
358
359
|
await copy(resolve("./runtime/public-assets/inter-latin-ext-400-normal.woff"), resolve(_nitro.options.output.publicDir, "inter-latin-ext-400-normal.woff"));
|
|
359
360
|
await copy(resolve("./runtime/public-assets/inter-latin-ext-700-normal.woff"), resolve(_nitro.options.output.publicDir, "inter-latin-ext-700-normal.woff"));
|
|
360
|
-
if (config.experimentalInlineWasm) {
|
|
361
|
+
if (!config.experimentalInlineWasm) {
|
|
361
362
|
await copy(resolve("./runtime/public-assets/svg2png.wasm"), resolve(_nitro.options.output.serverDir, "svg2png.wasm"));
|
|
362
363
|
await copy(resolve("./runtime/public-assets/yoga.wasm"), resolve(_nitro.options.output.serverDir, "yoga.wasm"));
|
|
363
364
|
}
|
|
@@ -384,7 +385,7 @@ export default function() {
|
|
|
384
385
|
createRouter({ routes: nitro.options.routeRules })
|
|
385
386
|
);
|
|
386
387
|
nitro.hooks.hook("prerender:generate", async (ctx) => {
|
|
387
|
-
if (ctx.route.includes(".")
|
|
388
|
+
if (ctx.route.includes("."))
|
|
388
389
|
return;
|
|
389
390
|
const html = ctx.contents;
|
|
390
391
|
if (!html)
|