Giter VIP home page Giter VIP logo

Comments (6)

Buda9 avatar Buda9 commented on May 16, 2024 1

You're totally correct. I've imported content from wordpress but the content is all buggy when imported from WP, could be because I'm using multilingual content. So, I've deleted old content and created few articles directly inside Ghost CMS, and now it's working perfectly! Thank you for your prompt response :)

from next-cms-ghost.

styxlab avatar styxlab commented on May 16, 2024

I migrated my Ghost CMS to v4 and did not find any incompatibilities with next-cms-ghost. That's the beauty of running a headless setup - it works out of the box. Anything missing?

from next-cms-ghost.

mikestecker avatar mikestecker commented on May 16, 2024

I changed the api version in lib/ghost.ts to v4, only getting a typing error but I know the SDK was updated to support it. I have posted an issue to request an update to the typings.

from next-cms-ghost.

styxlab avatar styxlab commented on May 16, 2024

@mikestecker: Thanks a lot for reporting. I am going to wait with the update until correct typings are available upstream. A current workaround could be to change it to canary:

const api = new GhostContentAPI({
  url: ghostAPIUrl,
  key: ghostAPIKey,
  version: 'canary',
})

However, the new version doesn't give you anything new unless v4 exposes new endpoints or functionality. I expect most changes in the v4 Admin API not the v4 Content API. What functionality are you missing that is only available in v4?

Also note that the v4 setting won't work for people running a Ghost v3 instance - so this either needs to be made configurable or the new standard setting should be canary.

from next-cms-ghost.

mikestecker avatar mikestecker commented on May 16, 2024

What functionality are you missing that is only available in v4?

Nothing that I'm aware of, I just wanted to change it for my own sanity knowing I'm on v4 running Ghost 4.x 😂

from next-cms-ghost.

styxlab avatar styxlab commented on May 16, 2024

Okay, I'll update to Content API v4 if

  1. typings are available and the Ghost JS client API fully supports it
  2. this repo needs a feature that is only available in v4
  3. Backwards compatibility is ensured (solution could be to try v4 first and use v3 as a fallback if it does not succeed).

I close this for now, but please reply to this thread if 1.) or 2.) becomes relevant.

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.