|
1 | 1 | // Minimal Artifacts example. |
2 | 2 | // |
3 | 3 | // POST /create { "name": "my-worker" } builds a fresh copy of |
4 | | -// examples/worker, rewrites its Worker name, publishes it to a new |
| 4 | +// examples/worker-shell, rewrites its Worker name, publishes it to a new |
5 | 5 | // Cloudflare Artifacts repo, and returns a read-only clone URL. |
6 | 6 | // The Worker owns the endpoint logic. The durable object stays |
7 | 7 | // minimal: it constructs the Workspace with `this` so the Worker can |
@@ -48,7 +48,7 @@ interface ArtifactCreateOutput { |
48 | 48 |
|
49 | 49 | const WORKSPACE_ROOT = "/workspace"; |
50 | 50 | const SOURCE_REPO = "https://github.com/cloudflare/computer"; |
51 | | -const EXAMPLE_PATH = "examples/worker"; |
| 51 | +const EXAMPLE_PATH = "examples/worker-shell"; |
52 | 52 | const GIT_REMOTE = "origin"; |
53 | 53 | const SHARE_TOKEN_TTL = "24h"; |
54 | 54 |
|
@@ -87,7 +87,7 @@ export default { |
87 | 87 | " -H 'content-type: application/json' \\", |
88 | 88 | ' -d \'{"name":"my-worker"}\'', |
89 | 89 | "", |
90 | | - "Builds examples/worker in a Workspace and pushes it to a", |
| 90 | + "Builds examples/worker-shell in a Workspace and pushes it to a", |
91 | 91 | "new Cloudflare Artifacts repo.", |
92 | 92 | ].join("\n"), |
93 | 93 | { headers: { "content-type": "text/plain; charset=utf-8" } }, |
|
0 commit comments