Yashu
CDCloudflare Developers
•Created by Yashu on 9/27/2024 in #workers-help
Leverge multi-tenency while deploy web application with user generated data
Posted a broader question to fully grasp on how can I built using Cloudflare Stack.
Requirements:
* Deploy a web application which will server the user generated content
* User can set custom domain to the web application
From what I understand:
* CF Worker can be used to accept all incoming requests from multiple custom domains to single worker by using
map URL pattern
* User generated data can be stored in D1
* KV can be used to map the custom domain ID to user generated content
How can I truly achieve a multi-tenency in the above scenario? Any/all help is really appreciated? 🙏4 replies
CDCloudflare Developers
•Created by Yashu on 4/26/2024 in #workers-help
How to set metaData to R2 object
I am using aws s3 based API to interact with r2 object.
I am trying to set metadata like this
But when I try to see metadata from the cloudflare dashboard.
I can't see any metadata for that specific object.
2 replies
CDCloudflare Developers
•Created by Yashu on 4/22/2024 in #workers-help
Cannot read properties of r2
I am trying to interact with r2 bucket from a worker.
But I get this error
Yes, I have already bind the bucket inside
wrangler.toml
file13 replies
CDCloudflare Developers
•Created by Yashu on 8/27/2023 in #pages-help
How can I run static + dynamic site under same domain?
I am trying/figuring out, how to run a static site (SSG) + dynamic app (using Next.js SSR) serve pages under same domain.
For example
Static site
Hosted on Cloudflare pages
* /
* /pricing
* /features
* /contact
* /help
Dynamic site
Currently hosted elsewhere
* / (if auth cookie is present show the dynamic site with user logged-in)
* /settings (if auth cookie is present)
* /<username>
How can I merge both the sites together to be severed from single domain?
3 replies