Re:Run JavaScript on Cloudflare with Workers
by btb on Tuesday March 13, 2018 @01:09PM
(#16577670)
Hopefully that limitation can be relaxed over time. Having to stuff all my logic in one big script sounds a bit annoying. At minimum having access to a second worker script route would be welcome for testing/development purposes, so one doesn't muck up a working production script.
[ Parent
| on HN ]
Re:Run JavaScript on Cloudflare with Workers
by kentonv on Tuesday March 13, 2018 @01:17PM
(#16577748)
> Having to stuff all my logic in one big script sounds a bit annoying.
Keep in mind that you can write your code as a bunch of modules and then use a tool like webpack to bundle it into one script, before you upload it to Cloudflare.
> for testing/development purposes
I agree with this, we definitely plan to add better ways to test script changes. Currently there is the online preview that shows next to the code editor, but it's true that there are some limits to what you can test with it.