Skip to content

Commit

Permalink
Add multi-render notes
Browse files Browse the repository at this point in the history
  • Loading branch information
kotx authored May 16, 2023
1 parent 26e7954 commit e485cea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ You may edit `CACHE_CONTROL` to the default [`cache-control` header](https://dev
### Deploying

Note: Due to how custom domains for workers work, you MUST use a route to take advantage of caching. Cloudflare may fix this soon.
Also note that *.workers.dev domains do not cache responses. You MUST use a route to your own (sub)domain.
Also note that \*.workers.dev domains do not cache responses. You MUST use a route to your own (sub)domain.

If you want to deploy render with multiple domains for one worker, check out [multi-render](https://github.com/Erisa/multi-render)! It uses render [as a package](#using-as-a-package) to serve multiple buckets to multiple domains with custom configurations.

#### Method 1 (Local)
```sh
Expand All @@ -73,6 +75,8 @@ import render from "render2";
render.fetch(req, env, ctx);
```

You can see an awesome example with [Erisa](https://github.com/Erisa)'s [multi-render](https://github.com/Erisa/multi-render)!

## Development

Install deps:
Expand Down

0 comments on commit e485cea

Please sign in to comment.