Geometrically
Explore posts from servers"Partially" pre-render page
Hello,
I have a page in Nuxt which I would like to pre-render at build time. However, the header of my site changes based on whether a user is logged in or not. Is there a way for me to pre render the page only and not the template in Nuxt?
Thank you!
6 replies
CDCloudflare Developers
•Created by Geometrically on 11/6/2023 in #workers-help
Secrets in Cloudflare Workers
Hello,
I am trying to upload secrets to my worker via GitHub Actions. However, it is not working. It says the secrets are uploaded but they aren't there.
Do I need to put the secrets in my
Wrangler.toml
with dummy values so it registers?
Repo: https://github.com/modrinth/sisyphus.
This is my actions.yml. Everything works but secrets upload:
2 replies
CDCloudflare Developers
•Created by Geometrically on 11/4/2023 in #workers-help
Should you use the cache API when requesting from R2?
I have a super simple worker wrapping R2.
This is the code so far:
Do I have to use the Cache API to use the cloudflare CDN to cache the assets on R2? Or is that automatic. This cache API: https://developers.cloudflare.com/workers/examples/cache-api/. Or should I put a page rule in front of this saying to cache things
22 replies
CDCloudflare Developers
•Created by Geometrically on 10/25/2023 in #general-help
Cannot Access Workers Dashboard
4 replies
CDCloudflare Developers
•Created by Geometrically on 7/4/2023 in #workers-help
Cannot set unbound function model: Workers
5 replies
CDCloudflare Developers
•Created by Geometrically on 7/4/2023 in #general-help
WAF Blocking Calls from Cloudflare Workers
Hello,
I have an API which is available on Cloudflare through https://api.modrinth.com. This API is protected by Cloudflare. I have a Cloudflare Pages website which calls this API via SSR. Right now, cloudflare seems to be blocking requests from my workers when it sends too many concurrently. How can I fix it?
Thanks!
15 replies
CDCloudflare Developers
•Created by Geometrically on 7/3/2023 in #workers-help
Nuxt + Markdown-it: Cannot convert object to primitive value
Hello,
I am trying to use markdown-it in my application. It works fine on Nuxt and other serverless platforms like Vercel, but it does not work on Cloudflare Workers for some reason.
Here is my code:
Here is a minimum repro example I have made: https://github.com/Geometrically/repro-nuxt-markdown. Let me know what I can do to fix this.
The full error and calltrace is:
60 replies
CDCloudflare Developers
•Created by Geometrically on 7/3/2023 in #workers-help
Favicon.ico not being found - Nuxt
24 replies
CDCloudflare Developers
•Created by Geometrically on 6/2/2023 in #workers-help
R2 Domain Connection not working
I have an r2 bucket which the domain connection does not work.
When I set the domain, it says initializing. When I reload hours later, it says "Unknown". When I go to the domain, https://launcher-files.modrinth.com/, it says CNAME Cross-user banned. This has not happened on any of my other existing buckets.
I've tried recreating the bucket, reconnecting the domain, retrying the connection, and more, all to no avail. what should I do?
7 replies