Giter VIP home page Giter VIP logo

Comments (14)

styxlab avatar styxlab commented on May 22, 2024 1

There were two issues that I solved with the latest merge:

  1. Your Ghost installation seems to be on an older version where the Content API does not throw an error, if a page is not found. I had to adapt the code to cater for this different behaviour of older APIs.

  2. The div[style] error occurred on elements with custom styling and has been fixed too.

I hope your site is now compiling fine (it is on my local machine).

By the way, your blog site is really nice, how do you create these awesome feature images? Continue that topic on twitter?

from next-cms-ghost.

styxlab avatar styxlab commented on May 22, 2024

I can't reproduce this issue.

Please check, if you still run into this problem after the recent project updates. If the problem persists, I will need a reproduced example and a link to it. Please start from a clean clone and make sure you don't mix npm and yarn.

from next-cms-ghost.

rahulsuresh-git avatar rahulsuresh-git commented on May 22, 2024

Yes, I understand it is hard to look at it without any reproduce :|
But, looks like this happens only when I try to fetch content from my GHOST instance. Doesn't happen while fetching from the default ghost data.
Not sure, if anything in the content can cause it to break like this.

Have tried cleaning cache and using yarn in a clean state, but still seems to happen.

from next-cms-ghost.

styxlab avatar styxlab commented on May 22, 2024

Thanks for the additional info. Could you please create temporary API keys in your Ghost Admin and publish them here, so I can source your content and get a chance to analyze it further?

from next-cms-ghost.

styxlab avatar styxlab commented on May 22, 2024

I cannot reach your Ghost CMS under https://www.crio.do/blog. Please paste exactly the URL that is shown in Ghost Admin under Integrations.

from next-cms-ghost.

styxlab avatar styxlab commented on May 22, 2024

Sorry, there was a typo on my end. Am now able to reproduce the issue!

from next-cms-ghost.

rahulsuresh-git avatar rahulsuresh-git commented on May 22, 2024

Phew! :) Let me know if you need anything else from my side.

from next-cms-ghost.

rahulsuresh-git avatar rahulsuresh-git commented on May 22, 2024

Just an heads up, I tried your gatsby monorepo as well, but it seems to work perfectly!
No such errors.

from next-cms-ghost.

rahulsuresh-git avatar rahulsuresh-git commented on May 22, 2024

Thank you @styxlab!
It works now. The only thing where I would require help is, when I try running next export, it says "Error: Image Optimization using Next.js' default loader is not compatible with next export"
Is there a way to disable these image optimisations?

Also, thanks for the appreciation. I will continue the conversation on twitter :)

from next-cms-ghost.

styxlab avatar styxlab commented on May 22, 2024

Yes, you can turn image optimizations off in appConfig.js:

// Images
export const nextFeatureImages: boolean = true
export const nextInlineImages: boolean = true

Default is true but you can set it to false.

from next-cms-ghost.

rahulsuresh-git avatar rahulsuresh-git commented on May 22, 2024

Flipped them to false, still fails with the same error :(

from next-cms-ghost.

styxlab avatar styxlab commented on May 22, 2024

There seems to be an issue that image optimization cannot be fully turned off in Next.js which currently inhibits next export. See https://github.com/vercel/next.js/discussions/19372 for further details. Once there is a concise way to switch off the image optimization, I will incorporate it here. May I ask you why you need next export?

from next-cms-ghost.

rahulsuresh-git avatar rahulsuresh-git commented on May 22, 2024

Oh okay. So I want to host the website in an S3 bucket, and I guess next export will generate those build files which I can use for hosting the site. I do not want to do a SSR.

from next-cms-ghost.

styxlab avatar styxlab commented on May 22, 2024

Thanks. Will close this thread because I don't want to blur the initial topic. Will open a new one for 'next export'.

from next-cms-ghost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.