From f624628fa2bf2a755a555ce940d76658ad7078a1 Mon Sep 17 00:00:00 2001 From: Habib Deriv <88178645+habib-deriv@users.noreply.github.com> Date: Wed, 4 Sep 2024 18:53:23 +0800 Subject: [PATCH] Update gatsby-config.js --- themes/gatsby-theme-deriv/gatsby-config.js | 27 ---------------------- 1 file changed, 27 deletions(-) diff --git a/themes/gatsby-theme-deriv/gatsby-config.js b/themes/gatsby-theme-deriv/gatsby-config.js index 308a379..5a2fd04 100644 --- a/themes/gatsby-theme-deriv/gatsby-config.js +++ b/themes/gatsby-theme-deriv/gatsby-config.js @@ -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: { @@ -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, - }, - }, ], }