From 3623021f78b2c92d30f86ac96038941c51d93527 Mon Sep 17 00:00:00 2001 From: James Ross Date: Tue, 30 Jan 2024 20:15:35 +0000 Subject: [PATCH] docs: update Cloudflare Workers instructions --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index da002cca..c2202bcc 100644 --- a/README.md +++ b/README.md @@ -1103,10 +1103,10 @@ export default async fetch(req: Request, env: Env, ctx: ExecutionContext) { } ``` -In `wrangler.toml` you will need to enable `node_compat` to allow Postgres.js to operate in the Workers environment: +In `wrangler.toml` you will need to enable the `nodejs_compat` compatibility flag to allow Postgres.js to operate in the Workers environment: ```toml -node_compat = true # required for database drivers to function +compatibility_flags = ["nodejs_compat"] ``` ### Auto fetching of array types