Closed cossssmin closed 1 year ago
Sorry for this, somehow my build command in Netlify had changed to npm run build
, which obviously wouldn't work. Changed it to npm run generate
and all is good now:
Hey :) no problem at all, glad you could figure it out.
Nice site and og image by the way, do you mind if I put it as an example on https://nuxtseo.com/og-image/getting-started/examples ?
Thanks, and I’d love to see it there ;)
Describe the bug
Hi, thanks for this module, been enjoying it for some of our sites.
I'm trying to get it working for the Maizzle docs site, for which I also use
@nuxt/content
.It works fine for all pages except the homepage.
The only things different there from other pages that I can think of:
<ContentDoc path="" />
useContentHead
composableYou can see the current state of it in this PR (please excuse the diffs!), you can see
index.vue
usesdefineOgImage
aboveuseContentHead
:https://github.com/maizzle/maizzle.com/pull/136
However, something in
nuxt-og-image
is tripping up@nuxt/content
when I usenuxt generate
(works fine when developing locally) - see the PR deployed on Netlify:https://deploy-preview-136--maizzle-docs.netlify.app/
You can see the page is blank and there are console errors because those content json files were not generated (I've also double checked the build log, it's not even there).
The strange thing is, even if I remove all traces of
nuxt-og-image
frompages/index.vue
, it keeps happening.There are no build errors in the Netlify build log.
The moment I uninstall
nuxt-og-image
completely, it all works fine again.Am I doing something wrong? Would appreciate any help, I'd really love to use the module for our docs :)
Reproduction
https://github.com/maizzle/maizzle.com/pull/136
System / Nuxt Info