somoni
CDCloudflare Developers
•Created by somoni on 9/23/2024 in #workers-help
are there examples showing how to do authentication in a cloudflare worker ?
Hi Folks
I am investigating how to use cloudflare workers as an api getway. I have a go service that is running in cly.io and i want to restrict calls made to this service to all be authenticated. So that plan is to put qorkers in front of that api.
here is the flow
client --> cloudfare-workers -> my-go-ap
The idea is to call either supabase or clerk from the cloudflare worker and redirect the call to my service once it is authenticated. Are there any examples close to this i could learn from ?
Best regards4 replies
CDCloudflare Developers
•Created by somoni on 9/19/2024 in #general-help
setting up dns and custom domain for deployed pages
Hi Folks
I deployed pages successfully and am able to access those pages using
https://<my-pages>.pages.dev/
unfortunately i cant figure how to make sure both www.<myhostname>.com
and <myhostname>.com
point to that deployment.
I am ablet to access www.<myhostname>.com
by just adding a CNAME that points to my pages. now <myhostname>.com
is still not working . i think i need to add A records. so how do i get the ip address that i need to add where the A records will point to ? thats not covered i nthe docs. The docs also don't mention anything about A records unfortunately they only talk about setting up CNAME records. so i have that working but now i need to also make sure the when someone access the root domain they can type <myhostname>.com
and get the same result.
Best regards7 replies
CDCloudflare Developers
•Created by somoni on 6/17/2023 in #workers-help
is there an easier way to clean up all my pages deployments ?
I am trying to avoid deleting each deployment one by one. Its tedious and should be automated. I dont want to go to the cloudflare console and delete each one by hand.
3 replies
CDCloudflare Developers
•Created by somoni on 6/11/2023 in #workers-help
can you sue zod schema validation with clouflare workers in typescript ?
My assumption is yes but i wanted to confirm validation on the edge for data coming from the user
3 replies
CDCloudflare Developers
•Created by somoni on 5/31/2023 in #workers-help
is there an example i can use with websockets on cloudflare ?
The documentation does not link to one particular example . Would be nice to maybe add that link in the docs https://developers.cloudflare.com/workers/runtime-apis/websockets/
5 replies
CDCloudflare Developers
•Created by somoni on 5/28/2023 in #workers-help
Please help. I am trying to import a typescript module in a worker in the same git repo.
https://github.com/ymolists/sbox-cflare/blob/main/server/package.json#L10
this 👆 is how i am trying to import this typescript module in the same git repo. Can anyone please tell me what i am doing droing ?
Here is the error i get when i try to run
wrangler dev
7 replies
CDCloudflare Developers
•Created by somoni on 5/27/2023 in #general-help
is there a simple example that shows how you can import a local ts/js project locally please ?
I am trying to build a worker based project that imports a local ts/js project with its own directory
2 replies