Recipes
Using Cloudflare Workers
Seyfert supports Cloudflare Workers, you can setup it by configuring seyfert.config.mjs
with config.http
see more info here
Since Cloudflare Workers doesn't support fs, using it with seyfert might be a little tricky as you may have to import each command/language/component and load it manually
You must set compilerOptions.module
to ESNext
in your tsconfig.json
since cf workers only supports ESM
First of all you will need to install an adapter for seyfert, you can do it by running:
and your index.ts
shall follow the following example:
and the same when we load both components
and langs
and then onwards we can use seyfert with Cloudflare Workers.