Replies: 1 comment
-
Sorry nvm. There is another article that contained the explanation that I needed: developers.cloudflare.com/pages/platform/functions/advanced-mode/#set-up-a-function |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to enable the assets in my static subdirectory by following the steps on the CF quickstart tutorial here: https://developers.cloudflare.com/pages/framework-guides/deploy-a-hono-site/
The line that is supposed to handle the static files is the
ctx.env.ASSETS.fetch(ctx.req)
however I am unsuccessful as it results in a 500. I must be missing steps to associate the environment field.I cannot find much information only in their API reference here: https://developers.cloudflare.com/pages/platform/functions/api-reference/#envassetsfetch
Which made me try passing
ctx.req.path
for the param, but that didn't solve anything. The configuration that I have up to now is at https://github.com/patterns/circus-barkerAre there other steps that I am missing? appreciate any hints.
Beta Was this translation helpful? Give feedback.
All reactions