This repo relies on pnpm and pnpm workspaces to cohabit Managed component/ Worker / common game logic
- I encountered some issues with
[email protected]
downgraded back to[email protected]
and everything seems to be working well
Root's package.json
defines useful scripts.
Script pnpm mc:dev
will execute webcm src http://localhost:8000
in in mc-tic-tac-toe where :
src
: Managed component pathhttp://localhost:8000
Host target
Deploy first the worker by running pnpm worker:deploy
based on wrangler deploy
command. Once deployed copy the worker URL and and replace this line const WORKER_URL = '<DEFINE_YOUR WORKER_URL>';
located in packages/mc-tic-tac-toe/src/index.ts
Tried to pass worker URL thought settings flag, with --settings_workerUrl=http://localhost:8787
. Unfortunately, webcm doesn't take in count --settings_workerUrl
flag see cloudflare/webcm/manager.ts#L286 patching it end up with node.js ECONNREFUSED
errors.
Licensed under the Apache License.