Skip to content

Commit ea89854

Browse files
Frankieijjk
andauthored
Update Ghost CMS Example: Accept-Version Header API requirement, typo (#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>
1 parent 6b829d8 commit ea89854

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/cms-ghost/lib/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const GHOST_API_KEY = process.env.GHOST_API_KEY || GHOST_API_KEY_DEFAULT
77
const api = new GhostContentAPI({
88
url: GHOST_API_URL,
99
key: GHOST_API_KEY,
10-
version: 'v3',
10+
version: 'v3.0',
1111
})
1212

1313
const is404 = (error) => /not found/i.test(error.message)

examples/cms-ghost/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
images: {
3-
domains: ['static.gotsby.org'],
3+
domains: ['static.ghost.org'],
44
},
55
}

0 commit comments

Comments
 (0)