Skip to content

srvx's node adapter breaks the Clerk backend SDK #47

@gyulavoros

Description

@gyulavoros

Sorry in advance, if this is not the right place to flag this, but my issue is a constellation of things influencing each other.

The situation:

  • I have a Vike project
  • I'm using Bun as my runtime
  • I'm using @clerk/backend for authentication
  • I'm using hono and @hono/clerk-auth
  • I was using vike-server, at this point things worked fine
  • I recently migrated to vike-photon, that broke Clerk auth

My current understanding is the following:

Chances are, that this issue should be addressed in Clerk's or srvx's side. Still, I'm wondering if it's a good idea for Photon to eagerly load srvx/node when running on Bun? Is it even possible to lazily import the Node adapter?

I'd appreciate any tips, guidance or just a confirmation if my theory seems plausible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions