texan
CDCloudflare Developers
•Created by Specy on 2/13/2025 in #pages-help
Error 1014 and instability
Hey @Specy , this is related to an incident that was just called. It's on our end, not yours, and we're working to fix it!
3 replies
CDCloudflare Developers
•Created by Skins on 2/10/2025 in #workers-help
how to deploy already created project worker wrangler?
Your wrangler.json file specifies a staging environment. If you run
npx wrangler deploy -e staging
it will deploy my-worker-staging
with the specified route and kv binding9 replies
CDCloudflare Developers
•Created by Skins on 2/10/2025 in #workers-help
how to deploy already created project worker wrangler?
add a
-e staging
if you want to deploy to the staging worker instead9 replies
CDCloudflare Developers
•Created by Skins on 2/10/2025 in #workers-help
how to deploy already created project worker wrangler?
Cool, yeah you can just run
npx wrangler deploy
and it will do the upload 🙂9 replies
CDCloudflare Developers
•Created by Skins on 2/10/2025 in #workers-help
how to deploy already created project worker wrangler?
Hey Skins, do you already have a wrangler.toml, or are you configuring things from dash?
9 replies
CDCloudflare Developers
•Created by GhaztliousMoths on 2/6/2025 in #pages-help
Is it possible to have a comments section on pages?
You might find that Workers Assets is easier to work with, as there are a lot more Workers products that have compatibility (https://developers.cloudflare.com/workers/static-assets/compatibility-matrix/)
4 replies
CDCloudflare Developers
•Created by GhaztliousMoths on 2/6/2025 in #pages-help
Is it possible to have a comments section on pages?
Hey @GhaztliousMoths , you could definitely use Pages Functions for this: https://developers.cloudflare.com/pages/functions/, along with a durable object for comment storage (see: https://developers.cloudflare.com/pages/functions/bindings/#durable-objects)
4 replies
CDCloudflare Developers
•Created by X ? on 1/31/2025 in #workers-help
Connect Github
At the moment you have to create a worker and then git connect it. In the (very near) future you'll be able to do it right from the create screen 🙂
2 replies
CDCloudflare Developers
•Created by Tee on 1/31/2025 in #workers-help
Issues with runtime variables and secrets
Or you can specify the var in your wrangler.toml. That's probably the best route
6 replies
CDCloudflare Developers
•Created by Tee on 1/31/2025 in #workers-help
Issues with runtime variables and secrets
Yup exactly! You can switch to using secrets, or specify the keep_vars like I mentioned above 🙂
6 replies
CDCloudflare Developers
•Created by Tee on 1/31/2025 in #workers-help
Issues with runtime variables and secrets
Hey @Tee , just tried to reproduce on my end but wasn't able to. This seems to be working as intended. Are you sure you're using secrets and not vars?
If you use secrets, those should be available in your next deploy. If you use vars, those would need to be specified in your wrangler.toml, or you can specify keep_vars (https://developers.cloudflare.com/workers/wrangler/configuration/#top-level-only-keys)
6 replies
CDCloudflare Developers
•Created by Mitya on 1/29/2025 in #workers-help
Can I run two workers from one monorepo?
Sounds like you want Workers builds 🙂
https://developers.cloudflare.com/workers/ci-cd/builds/advanced-setups/
9 replies
CDCloudflare Developers
•Created by veeque on 1/29/2025 in #pages-help
What's the difference between Cloudflare Pages and Workers Frameworks?
Not all frameworks in Pages are supported with Worker Assets. Additionally, things like static config (header and redirects) aren't currently available with Worker Assets.
14 replies
CDCloudflare Developers
•Created by veeque on 1/29/2025 in #pages-help
What's the difference between Cloudflare Pages and Workers Frameworks?
Hi veeque! Workers Assets is still in beta, but we're hoping to GA soon. The compatibility matrix best describes differenes between Pages and Worker Assets:
https://developers.cloudflare.com/workers/static-assets/compatibility-matrix/
14 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?
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