Proxy your website
💡 Prerequisite: WebCM needs Node version >= 18. You can then install all dependencies with
npm i.
To proxy your website through WebCM, add your website to the target property of webcm.config.ts before running WebCM.
Run WebCM using npx​
Create a
webcm.config.tsconfig file (you can use example.config.ts as an example)Within the same folder, run:
npx webcmYou can optionally add flags
--cand--mcto respectively customise the paths to your config file and/or customise the relative path where your components will be loaded. The default values are:--c=webcm.config.ts --mc=./components.WebCM will load any of the Managed Components specified in your config and present in the components folder, attempting to downloading any missing ones from the
@managed-componentsnpm registry.
Develop​
git clone [email protected]:cloudflare/webcm.git && cd webcm && npm i- Create a
webcm.config.tsconfig file (use example.config.ts as an example) npm run dev