Skip to content

Commit 3623021

Browse files
Cherryporsager
authored andcommitted
docs: update Cloudflare Workers instructions
1 parent 6f20a48 commit 3623021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1103,10 +1103,10 @@ export default async fetch(req: Request, env: Env, ctx: ExecutionContext) {
11031103
}
11041104
```
11051105

1106-
In `wrangler.toml` you will need to enable `node_compat` to allow Postgres.js to operate in the Workers environment:
1106+
In `wrangler.toml` you will need to enable the `nodejs_compat` compatibility flag to allow Postgres.js to operate in the Workers environment:
11071107

11081108
```toml
1109-
node_compat = true # required for database drivers to function
1109+
compatibility_flags = ["nodejs_compat"]
11101110
```
11111111

11121112
### Auto fetching of array types

0 commit comments

Comments
 (0)