Serve the Playground client.js library on playground.wordpress.net #778
Labels
[Type] Enhancement
New feature or request
[Type] Reliability
Playground uptime, reliability, not crashing
This is an attempt to develop a strategy for consuming Playground.
@wp-playground/client
package from unpkg.com might break the existing sites when the methods change.Let's just have Playground ship its own API client that's compatible with the current version of Playground. It still doesn't address breaking API changes, but that is a separate discussion involving defining stable and unstable APIs.
This will involve an adjustment to the playground.wordpress.net build pipeline:
wordpress-playground/packages/playground/website/project.json
Lines 12 to 25 in 6f4f269
Done is:
nx build:wasm-wordpress-net playground-website
yields a build where theclient.js
library is exposedclient.js
coming from unpkg in this repo are updated to talk abouthttps://playground.wordpress.net/client.js
instead.The text was updated successfully, but these errors were encountered: