Skip to content

Commit

Permalink
Merge pull request #552 from canopas/remove-iframely-dep
Browse files Browse the repository at this point in the history
Remove iframely dependency
  • Loading branch information
cp-sumi-k authored Feb 13, 2024
2 parents bb7dcdb + d097132 commit 258ce6e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-frontend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy-frontend-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion nuxt-frontend/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down
1 change: 0 additions & 1 deletion nuxt-frontend/config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down
10 changes: 0 additions & 10 deletions nuxt-frontend/pages/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
},
},
],
});
Expand Down

0 comments on commit 258ce6e

Please sign in to comment.