Skip to content

Fix SandpackWithHTMLOutput to use src dir - #6613

Merged
mattcarrollcode merged 1 commit into
reactjs:mainfrom
mattcarrollcode:fix-sandbox
Feb 6, 2024
Merged

Fix SandpackWithHTMLOutput to use src dir#6613
mattcarrollcode merged 1 commit into
reactjs:mainfrom
mattcarrollcode:fix-sandbox

Conversation

@mattcarrollcode

@mattcarrollcodemattcarrollcode commented Feb 6, 2024

Copy link
Copy Markdown
Contributor

The SandpackWithHTMLOutput is broken, likely since #6496 this PR fixes the component by prefixing all files except package.json with src so the files are all in the place CodeSandbox expects. This broke 9 sandpacks across 5 pages. Fixes#6612

Preview links

<link> page

<meta> page

<script> page

<style> page

<title> page

@vercel

vercelBot commented Feb 6, 2024

Copy link
Copy Markdown

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

NameStatusPreviewUpdated (UTC)
react-dev✅ Ready (Inspect)Visit PreviewFeb 6, 2024 5:02pm

@github-actions

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@mattcarrollcode
mattcarrollcode marked this pull request as ready for review February 6, 2024 17:14
@mattcarrollcode
mattcarrollcode merged commit c118938 into reactjs:mainFeb 6, 2024
@mattcarrollcode
mattcarrollcode deleted the fix-sandbox branch February 6, 2024 17:36
@mattcarrollcodemattcarrollcode changed the title Fix Sandpack wiht HTML output to use src dirFix SandpackWithHTMLOutput to use src dirFeb 6, 2024
trevlee0212 added a commit to trevlee0212/react.dev that referenced this pull request Feb 7, 2024
Fix SandpackWithHTMLOutput to use src dir (reactjs#6613)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: all new sandboxes (with ShowRenderedHTML) break

3 participants

@mattcarrollcode@rickhanlonii@facebook-github-bot