Skip to content

bcrypt.js unsupported in vercel edge runtime #118

Open
@Michael-fore

Description

@Michael-fore

I connected my supabase project to vercel as instructed by the read me. After connecting the build process started generating errors because it is actually trying create the edge functions now.

./node_modules/.pnpm/bcryptjs@2.4.3/node_modules/bcryptjs/dist/bcrypt.js
./lib/auth/session.ts
./node_modules/.pnpm/bcryptjs@2.4.3/node_modules/bcryptjs/dist/bcrypt.js
A Node.js API is used (setImmediate at line: 352) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime

bcryptjs is used in the sessions.ts in the default repo. Is there something else i should be doing? a config setting somewhere?

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