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? 🙏
2 Replies
Yashu
YashuOP2mo ago
Or, any other Cloudflare feature which can be used?
tadhglewis
tadhglewis2mo ago
Do you have an actual question? It's pretty vague - you've listed some things which yes, you could do multi tenancy with but haven't asked anything specific You can use Cloudflare SaaS to allow custom domains and then your worker just fetches data dynamically based on the domain that's use... Pretty much it
Want results from more Discord servers?
Add your server