Skip to content

Commit fc24e27

Browse files
committed
[gatsby-source-contentful] Fix storing new sync token
1 parent 517ee43 commit fc24e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-source-contentful/src/gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ exports.sourceNodes = async (
103103
// This might change though
104104
if (host !== `preview.contentful.com`) {
105105
const newState = {}
106-
newState[spaceId] = nextSyncToken
106+
newState[`${spaceId}-${environment}`] = nextSyncToken
107107
setPluginStatus(newState)
108108
}
109109

0 commit comments

Comments
 (0)