Skip to content

Commit e71a999

Browse files
committed
docs: clarify that a private connection works across all deployed environments
1 parent 7220ed6 commit e71a999

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/private-networking/overview.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ When you add a private connection in the dashboard, the following happens:
5353

5454
When the connection becomes **Active**, the dashboard shows the assigned endpoint IP. Plug it into the connection-string environment variable your task already reads (for example, `DATABASE_URL` set on the **Environment Variables** page):
5555

56+
<Note>
57+
A private connection is scoped to your **organization**, not to a single environment. The same
58+
assigned IP works from any deployed environment your tasks run in — Preview branches, Staging,
59+
and Production — so you can set the connection-string env var per environment and point them
60+
all at the same private resource. (Local **Development** runs on your own machine, so it can't
61+
reach the endpoint IP — use a regular public connection there.)
62+
</Note>
63+
64+
5665
```typescript
5766
import { task } from "@trigger.dev/sdk";
5867
import { Client } from "pg";

0 commit comments

Comments
 (0)