Skip to content

Commit

Permalink
Adds cms config keys to store.config
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Zanzini committed Jun 10, 2022
1 parent 45df1fc commit e546006
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ const gatsbyConfig: GatsbyConfig = {
{
resolve: '@vtex/gatsby-source-cms',
options: {
workspace: 'danzan',
tenant: 'storeframework',
workspace: config.cms.workspace,
tenant: config.cms.tenant,
},
},
{
Expand Down
6 changes: 6 additions & 0 deletions store.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ module.exports = {
hideUnavailableItems: true,
},

// Headless CMS
cms: {
tenant: 'storeframework',
workspace: 'master',
},

// Default channel
channel: '{"salesChannel":"1","regionId":""}',
locale: 'en-US',
Expand Down

0 comments on commit e546006

Please sign in to comment.