Skip to content

Commit

Permalink
docs: update Cloudflare Workers instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherry authored and porsager committed Jan 30, 2024
1 parent 6f20a48 commit 3623021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3623021

Please sign in to comment.