Skip to content

Commit

Permalink
Merge pull request #25 from binary-com/habib-deriv-patch-2
Browse files Browse the repository at this point in the history
Update gatsby-config.js
  • Loading branch information
habib-deriv authored Sep 4, 2024
2 parents 9e144be + f624628 commit 0397f76
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions themes/gatsby-theme-deriv/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,6 @@ const href = isBrowser && window.location.href
const site_url =
origin === 'https://deriv.com' || origin === 'https://eu.deriv.com' ? href : 'https://deriv.com'

const strapi_preview_param = {
publicationState: 'live',
}

const strapi_config = [
{
singularName: 'who-we-are-page',
queryParams: strapi_preview_param,
},
{
singularName: 'cfd-warning-banner',
queryParams: strapi_preview_param,
},
{
singularName: 'contact-us',
queryParams: strapi_preview_param,
},
]

module.exports = {
// pathPrefix: process.env.PATH_PREFIX || '/deriv-com/', // For non CNAME GH-pages deployment
flags: {
Expand Down Expand Up @@ -365,13 +346,5 @@ module.exports = {
generateStatsFile: process.env.GENERATE_JSON_STATS === 'true',
},
},
{
resolve: 'gatsby-source-strapi',
options: {
apiURL: 'https://chief-skinny-instrument.strapiapp.com',
accessToken: process.env.GATSBY_STRAPI_TOKEN,
collectionTypes: strapi_config,
},
},
],
}

0 comments on commit 0397f76

Please sign in to comment.