nuxt-og-image 0.4.4 → 0.4.6
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 +1 -1
- package/dist/module.mjs +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -142,7 +142,7 @@ declare module 'nitropack' {
|
|
|
142
142
|
["OgImage", "OgImageScreenshot"].forEach((name) => {
|
|
143
143
|
addComponent({
|
|
144
144
|
name,
|
|
145
|
-
filePath: resolve(`./runtime/components/${name}
|
|
145
|
+
filePath: resolve(`./runtime/components/${name}`),
|
|
146
146
|
island: true
|
|
147
147
|
});
|
|
148
148
|
});
|
|
@@ -178,7 +178,7 @@ declare module 'nitropack' {
|
|
|
178
178
|
if (routeRules.ogImage === false)
|
|
179
179
|
return;
|
|
180
180
|
const screenshotPath = ctx._contents.match(new RegExp(`<link id="${LinkPrerenderId}" rel="prerender" href="(.*?)">`))?.[1];
|
|
181
|
-
const fileName = `${hash({ route: ctx.route
|
|
181
|
+
const fileName = `${hash({ route: ctx.route })}.png`;
|
|
182
182
|
const absoluteUrl = withBase(`${config.outputDir}/${fileName}`, config.host);
|
|
183
183
|
const entry = {
|
|
184
184
|
fileName,
|