You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The most important USP of Clerk in my humble opinion is its capability to work on Edge like Cloudflare Workers. Please kindly provide a getting started tutorial and a sample starter for using Clerk in Cloudflare Workers with Remix.
@Ehesp Thank you so much for your kind response.
But I would like to tell you I tried the docs before and it never worked on Cloudflare Workers!! Lot of work arounds are needed before we can make it work. For example recently CF workers stopped exposing the ENV variables in the globalThis scope and breaks the Clerk's implementation. (ref: #1540)
This is not just for the benefit of me and for a wider audience it be of great help and prevent the huge friction that happens while trying to adapt Clerk.
Ok update, I talked to with someone from Cloudflare Pages to see if there was any potential better ways that this can be done. Overall the approach I will be taking is this:
Activity
Ehesp commentedon Aug 2, 2023
You just need to follow https://clerk.com/docs/quickstarts/get-started-with-remix and deploy to Cloudflare: https://remix.run/docs/en/1.19.1/guides/envvars#production
aerojeyenth commentedon Aug 2, 2023
@Ehesp Thank you so much for your kind response.
But I would like to tell you I tried the docs before and it never worked on Cloudflare Workers!! Lot of work arounds are needed before we can make it work. For example recently CF workers stopped exposing the ENV variables in the globalThis scope and breaks the Clerk's implementation. (ref: #1540)
This is not just for the benefit of me and for a wider audience it be of great help and prevent the huge friction that happens while trying to adapt Clerk.
JacobMGEvans commentedon Aug 9, 2023
Hmmm, I could try putting a very simple example together. I might not be able to get to it until this weekend.
JacobMGEvans commentedon Aug 15, 2023
Ah! I forgot about this, you can blame Baldurs Gate 3
I will dedicate some time tomorrow morning to this.
JacobMGEvans commentedon Aug 16, 2023
Ok update, I talked to with someone from Cloudflare Pages to see if there was any potential better ways that this can be done. Overall the approach I will be taking is this:
At the end I hope to have a very simple concise example (a critical success would be agnostic even to Remix)