Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nmn committed Oct 21, 2024
1 parent 0b46504 commit 73af4ce
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 597 deletions.
1 change: 1 addition & 0 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@mdx-js/react": "^1.6.22",
"@stylexjs/stylex": "0.8.0",
"@vercel/analytics": "^1.1.1",
"@webcontainer/api": "1.1.2",
"clsx": "^1.2.1",
"codemirror": "^5.65.16",
"react": "^17.0.2",
Expand Down
9 changes: 7 additions & 2 deletions apps/docs/src/pages/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@
*/

import * as React from 'react';
import BrowserOnly from '@docusaurus/BrowserOnly';
import Layout from '@theme/Layout';
import Playground from '../../components/Playground';

export default function PlaygroundPage() {
return (
<Layout>
<Playground />
<BrowserOnly>
{() => {
const Playground = require('../../components/Playground').default;
return <Playground />;
}}
</BrowserOnly>
</Layout>
);
}
Loading

0 comments on commit 73af4ce

Please sign in to comment.