Unable to serve static file within Public folder
Hello,
I'm a beginner with cf workers, I don't quite understand pretty much of how the Binding work for example in this scenario,
env.ASSETS.get() object is used to serve the homepage but throws an error regarding UN-implemented get() method
I have used fetch() but still failed, so please, somebody help me out.
2 Replies
env.ASSETS.fetch(<req>) is the right pattern. What failures were you seeing with fetch?
I made mistake when I used fetch(), it's fixed now and serving.
There is other problem I encountered in deploy state, I will go through same process and submit the error if it appear again
Thanks
ALL CLEAR NOW. Thanks 🫡