Skip to content

Commit

Permalink
docs: update develop.md with build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Oct 17, 2024
1 parent 040e9ca commit 24f2a4d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,23 @@ then you can get the webhook url, and set the webhook url in the GitHub reposito

In the root directory, we have a `wrangler.tpl.toml`, which is a template for `wrangler.toml`.
We use `wrangler.tpl.toml` to generate `wrangler.toml` when we run `yarn dev`(this logic is in `libs/cfworker-builder/src/gen-toml.mjs`, and can used in other projects).

## Build

Just run:

```bash
# build for node
yarn build:node
# or build for cloudflare workers
yarn build:cfworker
```

the output will be in the `dist` directory.
and you can use it in your own project.

for example, you can run the node version:

```bash
node dist/node/index.js
```

0 comments on commit 24f2a4d

Please sign in to comment.