cfw icon indicating copy to clipboard operation
cfw copied to clipboard

feat: static upload

Open lukeed opened this issue 4 years ago • 4 comments

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.

lukeed avatar Aug 11 '20 06:08 lukeed

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".

maraisr avatar Sep 10 '21 12:09 maraisr

Hi @lukeed, do you think this issue still relevant or is it something that is being solved elsewhere?

ivoreis avatar Nov 19 '21 18:11 ivoreis

Would love this implemented @lukeed

simplenotezy avatar Aug 09 '22 14:08 simplenotezy

Probably static files these days should be in R2, in which case just rsync

maraisr avatar Aug 09 '22 21:08 maraisr