Server Actionsのnode:cryptoがエラーを起こす
文脈: Next.js on Cloudflare Pages
code:log
Module build failed: UnhandledSchemeError: Reading from "node:crypto" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
code:typescript
//before
import { randomUUID } from "node:crypto";
// after
const id = crypto.randomUUID();
https://developers.cloudflare.com/workers/runtime-apis/web-crypto/