question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adapt Remix package to run on Cloudflare Workers

See original GitHub issue

Package

  • @clerk/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/clerk-expo
  • @clerk/backend-core
  • @clerk/clerk-sdk-node
  • @clerk/edge
  • other:

Description

The rootAuthLoader uses http2 which is a node package. Cloudflare Workers does not have access to Node.js packages, just plain javascript. Can this not be changed to fetch?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
EArazlicommented, May 13, 2022

Thanks for the update! Not sure if this helps, but CF workers implements the web crypto api and there seems to be something similar to cross-fetch for that use case. https://www.npmjs.com/package/isomorphic-webcrypto

There also seems to be support for the web crypto API in node directly but the earliest LTS with support seems to be 16 https://nodejs.org/api/webcrypto.html#web-crypto-api

2reactions
phpb-comcommented, Aug 16, 2022

Any update on this? Would be good to be finally able use Clerk with Remix and CF Pages. 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploy a Remix site · Cloudflare Pages docs
Create a new project directory and then intialize a Remix project by running: $ npx create-remix@latest. After running the above command, ...
Read more >
Experiments with Remix and Cloudflare Workers
Instead of running an application on a server waiting for requests, each route is defined as a serverless function. When a request is...
Read more >
jacob-ebey/remix-cloudflare-worker-template
Remix + Cloudflare Workers + DO + Turborepo.
Read more >
remix-run/cloudflare-workers
Cloudflare worker request handler for Remix. Latest version: 1.9.0, last published: 8 days ago. Start using @remix-run/cloudflare-workers in ...
Read more >
Remix Directory
The Remix blog stack for deploying to Fly with MDX, SQLite, testing, linting, formatting, etc. View on GitHub remix-worker-template. cloudflare; tailwind ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found