From d097132d3c39ad3441c122be53b8f30351486b07 Mon Sep 17 00:00:00 2001 From: Sumita Canopas Date: Tue, 13 Feb 2024 10:01:33 +0530 Subject: [PATCH] Remove iframely dependency --- .github/workflows/deploy-frontend-dev.yml | 1 - .github/workflows/deploy-frontend-prod.yml | 1 - nuxt-frontend/config.js | 1 - nuxt-frontend/config.prod.js | 1 - nuxt-frontend/pages/[slug].vue | 10 ---------- 5 files changed, 14 deletions(-) diff --git a/.github/workflows/deploy-frontend-dev.yml b/.github/workflows/deploy-frontend-dev.yml index c154830e4..fce6e86f5 100644 --- a/.github/workflows/deploy-frontend-dev.yml +++ b/.github/workflows/deploy-frontend-dev.yml @@ -31,7 +31,6 @@ jobs: - name: Build frontend and copy to S3 run: | cd nuxt-frontend - sed -i "s|VITE_IFRAMELY_KEY_VALUE|${{ secrets.IFRAMELY_KEY }}|g" config.js sed -i "s|VITE_RECAPTCHA_SITE_KEY_VALUE|${{ secrets.RECAPTCHA_SITE_KEY }}|g" config.js sed -i "s|RESOURCES_URL|${{ secrets.RESOURCES_URL }}|g" config.js sh ./../deploy/generate-sitemap.sh https://dev-stack.canopas.com https://dev-stack-api.canopas.com diff --git a/.github/workflows/deploy-frontend-prod.yml b/.github/workflows/deploy-frontend-prod.yml index 1a9e7327e..b48df7463 100644 --- a/.github/workflows/deploy-frontend-prod.yml +++ b/.github/workflows/deploy-frontend-prod.yml @@ -31,7 +31,6 @@ jobs: - name: Build frontend and copy to S3 run: | cd nuxt-frontend - sed -i "s|VITE_IFRAMELY_KEY_VALUE|${{ secrets.IFRAMELY_KEY }}|g" config.prod.js sed -i "s|VITE_RECAPTCHA_SITE_KEY_VALUE|${{ secrets.RECAPTCHA_SITE_KEY }}|g" config.prod.js sed -i "s|RESOURCES_URL|${{ secrets.RESOURCES_URL }}|g" config.prod.js mv config.prod.js config.js diff --git a/nuxt-frontend/config.js b/nuxt-frontend/config.js index f6f9415c6..48e6fb595 100644 --- a/nuxt-frontend/config.js +++ b/nuxt-frontend/config.js @@ -8,7 +8,6 @@ export default Object.freeze({ SHOW_FRONTEND_DEVELOPMENT_PAGE: true, STRAPI_URL: "RESOURCES_URL", - VITE_IFRAMELY_KEY: "VITE_IFRAMELY_KEY_VALUE", VITE_RECAPTCHA_SITE_KEY: "VITE_RECAPTCHA_SITE_KEY_VALUE", MIX_PANEL_TOKEN: "acf7239a736ff487ca6058c981a55d7e", diff --git a/nuxt-frontend/config.prod.js b/nuxt-frontend/config.prod.js index cb9d06684..15d49d8a8 100644 --- a/nuxt-frontend/config.prod.js +++ b/nuxt-frontend/config.prod.js @@ -8,7 +8,6 @@ export default Object.freeze({ SHOW_FRONTEND_DEVELOPMENT_PAGE: false, STRAPI_URL: "RESOURCES_URL", - VITE_IFRAMELY_KEY: "VITE_IFRAMELY_KEY_VALUE", VITE_RECAPTCHA_SITE_KEY: "VITE_RECAPTCHA_SITE_KEY_VALUE", MIX_PANEL_TOKEN: "16b177c2cda3ec1fb11c63a07f27996c", diff --git a/nuxt-frontend/pages/[slug].vue b/nuxt-frontend/pages/[slug].vue index 69e516bc7..c3cecceb5 100644 --- a/nuxt-frontend/pages/[slug].vue +++ b/nuxt-frontend/pages/[slug].vue @@ -70,16 +70,6 @@ useHead({ innerHTML: JSON.stringify(getJsonLdSchema()), type: "application/ld+json", }, - { - src: - "//cdn.iframe.ly/embed.js?card=small&key=" + config.VITE_IFRAMELY_KEY, - onLoad: () => { - // Load media preview - document.querySelectorAll("oembed[url]").forEach((element) => { - iframely.load(element, element.attributes.url.value); - }); - }, - }, ], });