nuxt-modules / og-image

Generate OG Images with Vue templates in Nuxt.
https://nuxtseo.com/og-image
415 stars 27 forks source link

Redirecting home `/` to other url causes error #98

Closed IsraelOrtuno closed 11 months ago

IsraelOrtuno commented 1 year ago

Describe the bug

After debugging in a bigger app for hours, I found out that I had a redirect from / to /kits in my application. For some reason, this is causing an error while attempting to generate OG images in other URLS such as /kits/whatever. Could not find out what's really causing the issue.

Reproduction

https://stackblitz.com/edit/nuxt-starter-fq4uvd?file=app.vue,pages%2Findex.vue

System / Nuxt Info

------------------------------
- Operating System: Darwin
- Node Version:     v20.2.0
- Nuxt Version:     3.7.4
- CLI Version:      3.9.0
- Nitro Version:    2.6.3
- Package Manager:  npm@9.6.6
- Builder:          -
- User Config:      devtools, site, runtimeConfig, app, css, components, imports, modules, facebook, pinia, vite, experimental, auth, tailwindcss, colorMode
- Runtime Modules:  @nuxt/ui@2.9.0, @pinia/nuxt@0.4.11, @vueuse/nuxt@10.5.0, nuxt-icon@0.5.0, @sidebase/nuxt-auth@0.6.0-beta.7, nuxt3-meta-pixel@1.0.9, nuxt-og-image@2.1.3
- Build Modules:    -
------------------------------
harlan-zw commented 11 months ago

Thanks for reporting this, this has now been fixed upstream in Nuxt.