Skip to content

Commit 761a312

Browse files
nojiritakeshivicb
andauthoredFeb 10, 2025··
fix: support node18 (#356)
Co-authored-by: Victor Berchet <victor@suumit.com>
1 parent 6a3e35e commit 761a312

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

‎.changeset/fifty-parrots-retire.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
import `randomUUID` from `node:crypto` to support NodeJS 18

‎packages/cloudflare/src/cli/utils/ask-confirmation.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import { randomUUID } from "node:crypto";
2+
13
import Enquirer from "enquirer";
24

35
export async function askConfirmation(message: string): Promise<boolean> {
4-
const questionName = crypto.randomUUID();
6+
const questionName = randomUUID();
57

68
const enquirerAnswersObject = await Enquirer.prompt<Record<string, boolean>>({
79
name: questionName,

0 commit comments

Comments
 (0)
Please sign in to comment.