Skip to content

Cloudflare Worker + Remix + Clerk Starter  #1541

Closed

Description

@aerojeyenth

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.

Activity

  1. Ehesp commented on Aug 2, 2023

    @Ehesp
    Contributor
  2. aerojeyenth commented on Aug 2, 2023

    @aerojeyenth
    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.

  3. JacobMGEvans commented on Aug 9, 2023

    @JacobMGEvans

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

  4. JacobMGEvans commented on Aug 15, 2023

    @JacobMGEvans

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

    I will dedicate some time tomorrow morning to this.

  5. JacobMGEvans commented on Aug 16, 2023

    @JacobMGEvans

    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)

  6. locked and limited conversation to collaborators on Oct 30, 2023
  7. converted this issue into a discussion #1967 on Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions