Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit 1165e6d

Browse files
committed
Document DDP_DEFAULT_CONNECTION_URL
1 parent fbd3135 commit 1165e6d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/environment-variables.md

+9
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ See also: [`PORT`](#PORT).
1414

1515
> In development, this can be accomplished with `meteor run --port a.b.c.d:port`.
1616
17+
## DDP_DEFAULT_CONNECTION_URL
18+
(_develoment, production_)
19+
20+
There are some situations where it is valuable for the meteor client to use a different DDP server than the `ROOT_URL` server.
21+
22+
Setting `DDP_DEFAULT_CONNECTION_URL` when running a meteor server (development: `meteor run` or production: `node main.js`) will set the DDP server to the value in `DDP_DEFAULT_CONNECTION_URL`.
23+
24+
Setting `DDP_DEFAULT_CONNECTION_URL` when building (`meteor build`) will define the DDP server for `cordova` builds.
25+
1726
## DISABLE_WEBSOCKETS
1827
(_development, production_)
1928

0 commit comments

Comments
 (0)