Skip to content

fix: regression causing a crash in embedded studios #1482

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

Merged
merged 1 commit into from
May 8, 2024

Conversation

stipsan
Copy link
Member

@stipsan stipsan commented May 8, 2024

In embedded Studios the previewUrl option typically won't have origin specified, leading to a crash:
image

Tested this fix on sanity-io/nextjs-blog-cms-sanity-v3#505

I would write a test for it but I feel we should fast track a fix and ask Studio DX to do a patch of sanity and circle back later instead, since everyone on embedded studios are currently unable to use Presentation Tool 😅

@stipsan stipsan requested a review from a team as a code owner May 8, 2024 08:19
Copy link

vercel bot commented May 8, 2024

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

Name Status Preview Comments Updated (UTC)
visual-editing-astro ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:33am
visual-editing-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:33am
visual-editing-next-no-cache ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:33am
visual-editing-next-server-only ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:33am
visual-editing-next-with-i18n ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:33am
visual-editing-nuxt ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:33am
visual-editing-page-builder-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:33am
visual-editing-remix ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:33am
visual-editing-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:33am
visual-editing-svelte ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:33am

christianhg
christianhg previously approved these changes May 8, 2024
@christianhg
Copy link
Member

@stipsan , the astro build fails. If we merge #1479 then you can rebase on main and get that build to go green.

@stipsan stipsan force-pushed the fix-regression-causing-a-crash-in-embedded-studios branch from b3952cc to 1401de4 Compare May 8, 2024 08:27
@stipsan stipsan merged commit 6e7fc04 into main May 8, 2024
20 checks passed
@stipsan stipsan deleted the fix-regression-causing-a-crash-in-embedded-studios branch May 8, 2024 08:33
@squiggler squiggler bot mentioned this pull request May 8, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants