Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Disable 3P scripts on Codesandbox #24

Merged
merged 1 commit into from
May 18, 2022

Conversation

carolinamenezes
Copy link
Collaborator

@carolinamenezes carolinamenezes commented May 10, 2022

What's the purpose of this pull request?

This PR aims to avoid iframe errors on Codesandbox by disabling third-party scripts on it.

How does it work?

It checks if the DISABLE_3P_SCRIPTSenvvar exists and is true. If so, it doesn't render the ThirdPartyScripts component.

Checklist

You may erase this after checking them all ;)

  • Added an entry in the CHANGELOG.md at the beginning of its due section. The latest version should comes first.

  • Added the PR number with the PR link at the entry in the CHANGELOG.md. E.g., New items in the pull_request_template.md (#4)

  • PR description

  • Updated the Storybook - if applicable.

  • Added a label according to the PR goal - Breaking change, Enhancement, Bug or Chore.

  • Added the component, hook, or pathname in-between backticks (``) - If applicable. E.g., ComponentName component.

  • Identified the function or parameter in the PR - If applicable. E.g., useWindowDimensions hook.

  • For documentation changes, ping @carolinamenezes or @Mariana-Caetano to review and update the changes.

@vercel
Copy link

vercel bot commented May 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nextjs-store-storybook ✅ Ready (Inspect) Visit Preview May 18, 2022 at 1:08PM (UTC)

@vercel vercel bot temporarily deployed to preview May 10, 2022 19:58 Inactive
Copy link
Contributor

@tlgimenes tlgimenes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@vercel vercel bot temporarily deployed to preview May 18, 2022 13:08 Inactive
@vtex-sites
Copy link

vtex-sites bot commented May 18, 2022

Preview is ready

This pull request generated a Preview

👀   Preview: https://preview-24--nextjs.preview.vtex.app
🔬   Go deeper by inspecting the Build Logs
📝   based on commit dc5ac15

@vtex-sites
Copy link

vtex-sites bot commented May 18, 2022

Lighthouse Reports

Here are the Lighthouse reports of this Pull Request

📝 Based on commit dc5ac15

Lighthouse Report by page
📎   /
📎   /apple-magic-mouse-99988212/p
📎   /office

@carolinamenezes carolinamenezes merged commit dc5ac15 into main May 18, 2022
@carolinamenezes carolinamenezes deleted the feat/avoid-codesandbox-errors branch May 18, 2022 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants