Skip to content

Commit

Permalink
DRIVERS-2209 Remove VERCEL_URL from collection and specify vercel>aws…
Browse files Browse the repository at this point in the history
… precedence (#1398)
  • Loading branch information
abr-egn committed Apr 17, 2023
1 parent 0f9adb5 commit 27f9a69
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions source/mongodb-handshake/handshake.rst
Expand Up @@ -328,8 +328,9 @@ variables are populated:
| ``vercel`` | ``VERCEL`` |
+----------------+-----------------------------------------------------+

If none of those variables or variables for multiple names are populated the ``client.env``
value MUST be entirely omitted.
If none of those variables are populated the ``client.env`` value MUST be entirely omitted. When
variables for multiple ``client.env.name`` values are present, ``vercel`` takes precedence over
``aws.lambda``; any other combination MUST cause ``client.env`` to be entirely omitted.

Depending on which ``client.env.name`` has been selected, other fields in ``client.env`` SHOULD
be populated:
Expand All @@ -347,9 +348,7 @@ be populated:
+----------------+----------------------------+-------------------------------------+---------------+
| | ``client.env.region`` | ``FUNCTION_REGION`` | string |
+----------------+----------------------------+-------------------------------------+---------------+
| ``vercel`` | ``client.env.url`` | ``VERCEL_URL`` | string |
+----------------+----------------------------+-------------------------------------+---------------+
| | ``client.env.region`` | ``VERCEL_REGION`` | string |
| ``vercel`` | ``client.env.region`` | ``VERCEL_REGION`` | string |
+----------------+----------------------------+-------------------------------------+---------------+

Missing variables or variables with values not matching the expected type MUST cause the
Expand Down Expand Up @@ -519,8 +518,6 @@ command succeeds in the presence of the following sets of environment variables:
+-------------------+------------------+
| ``VERCEL`` | ``1`` |
+-------------------+------------------+
| ``VERCEL_URL`` | ``*.vercel.app`` |
+-------------------+------------------+
| ``VERCEL_REGION`` | ``cdg1`` |
+-------------------+------------------+

Expand Down

0 comments on commit 27f9a69

Please sign in to comment.