Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Cloudflare Worker + Remix + Clerk Starter #1541

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
1 task done
aerojeyenth opened this issue Jul 31, 2023 · 5 comments
Closed
1 task done

Cloudflare Worker + Remix + Clerk Starter #1541

aerojeyenth opened this issue Jul 31, 2023 · 5 comments

Comments

@aerojeyenth
Copy link

Package

  • @clerk/remix

Description

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
Copy link
Contributor

Ehesp commented Aug 2, 2023

@aerojeyenth
Copy link
Author

@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
Copy link

Hmmm, I could try putting a very simple example together. I might not be able to get to it until this weekend.

@JacobMGEvans
Copy link

Ah! I forgot about this, you can blame Baldurs Gate 3

I will dedicate some time tomorrow morning to this.

@JacobMGEvans
Copy link

JacobMGEvans commented 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:

  1. Start with https://clerk.com/docs/quickstarts/get-started-with-remix
  2. Implement workaround in A secretKey or apiKey must be provided error in Cloudflare Workers + Remix #1540
  3. See if that works
  4. Work on trying to find a better way to deal with auth, specifically with CF Workers

At the end I hope to have a very simple concise example (a critical success would be agnostic even to Remix)

@clerk clerk locked and limited conversation to collaborators Oct 30, 2023
@LekoArts LekoArts converted this issue into discussion #1967 Oct 30, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants