Skip to content

Commit

Permalink
wip persistence storage
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfame committed Oct 1, 2024
1 parent 617d6c3 commit c464c73
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 99 deletions.
188 changes: 94 additions & 94 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"dependencies": {
"@wordpress/block-library": "^9.7.0",
"@wordpress/blocks": "^13.7.0",
"@wp-playground/client": "^0.9.39",
"@wp-playground/client": "^0.9.45",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.1"
Expand Down
17 changes: 13 additions & 4 deletions src/ui/preview/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,18 @@ async function initPlayground(
): Promise< PlaygroundClient > {
const options: StartPlaygroundOptions = {
iframe,
remoteUrl:
'https://playground.wordpress.net/remote.html?storage=browser',
siteSlug: slug,
remoteUrl: `https://playground.wordpress.net/remote.html`,
mounts: [
{
device: {
type: 'opfs',
path: '/try-wp-' + slug,
},
mountpoint: '/wordpress',
},
],
// shouldInstallWordPress: false,
// siteSlug: slug,
blueprint: {
login: true,
steps: steps(),
Expand All @@ -66,7 +75,7 @@ async function initPlayground(
};

const client: PlaygroundClient = await startPlaygroundWeb( options );
await client.isReady;
await client.isReady();
return client;
}

Expand Down

0 comments on commit c464c73

Please sign in to comment.