texan
texan
CDCloudflare Developers
Created by johnrees on 1/20/2025 in #workers-help
using `not_found_handling = "single-page-application"` and a worker script together?
You could check out ‘experimental_serve_directly’ and see if you have a solution there. You’d basically invoke your user worker for every request and then use the assets binding to attempt to fetch your static assets. Downside to this is a user invocation for every request, but you’d have full control
6 replies
CDCloudflare Developers
Created by johnrees on 1/20/2025 in #workers-help
using `not_found_handling = "single-page-application"` and a worker script together?
not_found_handling will only be evaluated if there’s no worker script (see point 2): https://developers.cloudflare.com/workers/static-assets/routing/#default-behavior
6 replies
CDCloudflare Developers
Created by TheCarpetMerchant on 1/16/2025 in #workers-help
Where is the wrangler.toml file ?
Hey @TheCarpetMerchant , if you're editing a worker in the UI, you can enable observability by going into the "Logs" tab and clicking the blue "Enable" button in the table below.
18 replies
CDCloudflare Developers
Created by bkyerv on 1/13/2025 in #workers-help
deploying existing astro app using workers
Hey @bkyerv , you should be able to add the asset directory configuration like so: https://developers.cloudflare.com/workers/static-assets/binding/#directory No need for additional bootstrapping of the project, the files will be uploaded as part of wrangler deploy
4 replies
CDCloudflare Developers
Created by DeltaOne on 10/29/2024 in #workers-help
Nested directories are not working in Static Assets
@pas94 would you be able to file a github issue against workers-sdk with some details and/or repro? That would help us get this prioritized and eyes on it.
68 replies
CDCloudflare Developers
Created by DeltaOne on 10/29/2024 in #workers-help
Nested directories are not working in Static Assets
I think this has somewhat stalled because it's been difficult to get a repro. It seems like your issue might actually be different from KingsLayer (their issue was files not being uploaded during wrangler deploy). Would you be able to get a small github repo together and I can see if there's someone on the team who might be able to help?
68 replies
CDCloudflare Developers
Created by apolodoro on 11/12/2024 in #workers-help
Unknown error 10013
@apolodoro can you share your wrangler.toml, and perhaps the version of wrangler you're using?
12 replies
CDCloudflare Developers
Created by apolodoro on 11/12/2024 in #workers-help
Unknown error 10013
I thought we did handle this on the backend; I'll file a ticket for it in the meantime, but maybe I can sneak a fix in this week
12 replies
CDCloudflare Developers
Created by apolodoro on 11/12/2024 in #workers-help
Unknown error 10013
Ah, yup that's exactly right. dev --remote isn't yet supported (but on the roadmap for GA!)
12 replies