cfw
cfw copied to clipboard
feat: static upload
Upload a directory of static files.
- Can utilize
config.build
to run Rollup-based website builder (optional) - Requires (probably)
"type": "static"
or"static": "<dir>"
for targeting - Define KV namespace through config and/or CLI
Should try to make use of existing deploy
command instead of new upload
command.
See local
sirv
branch for worker-based runtime.
Can we get this soonish 😅
Personally not too phased it also building "the website". Thinking about it just treating this as a little side-effectful "upload" — in that cfw just builds the worker as it ordinarily does, but with "also to upload this target dir to a given kv namespace".
Hi @lukeed, do you think this issue still relevant or is it something that is being solved elsewhere?
Would love this implemented @lukeed
Probably static files these days should be in R2, in which case just rsync