Skip to content

Commit c14d5ad

Browse files
committed
Use nodejs compat
1 parent ab00a1d commit c14d5ad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/services/auth/login.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AppDB } from '../db/utilities';
2-
import { pbkdf2Sync } from 'crypto';
2+
import { pbkdf2Sync } from 'node:crypto';
33

44
export const login = async (username: string, password: string, db: AppDB) => {
55
const user = await db.query.users.findFirst({

wrangler.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name = "math-rock-stack"
33
compatibility_date = "2024-05-02"
44
pages_build_output_dir = "./build/client"
55

6+
compatibility_flags = [ "nodejs_compat" ]
7+
68
[vars]
79
CLOUDFLARE_ACCOUNT_ID = "887644ede3080f7152aa22e9ecf52f0f"
810

0 commit comments

Comments
 (0)