Skip to content

Commit

Permalink
Update Ghost CMS Example: Accept-Version Header API requirement, typo (
Browse files Browse the repository at this point in the history
…#37737)

* Update next.config.js

Fix typo on next config

* Update api.js

Update Ghost's content-api version `Accept-Version: v{major}.{minor}` requirement

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
Frankie and ijjk authored Jun 16, 2022
1 parent 6b829d8 commit ea89854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/cms-ghost/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const GHOST_API_KEY = process.env.GHOST_API_KEY || GHOST_API_KEY_DEFAULT
const api = new GhostContentAPI({
url: GHOST_API_URL,
key: GHOST_API_KEY,
version: 'v3',
version: 'v3.0',
})

const is404 = (error) => /not found/i.test(error.message)
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-ghost/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
images: {
domains: ['static.gotsby.org'],
domains: ['static.ghost.org'],
},
}

0 comments on commit ea89854

Please sign in to comment.