Skip to content

Commit 00ec743

Browse files
authored
Fix client vs. server discrepency
1 parent f49fad1 commit 00ec743

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

articles/cosmos-db/mongodb/vcore/tutorial-nodejs-web-app.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ Start by running the sample application's API with the local MongoDB container t
165165
> [!NOTE]
166166
> The object ids (`_id`) are randomnly generated and will differ from this truncated example output.
167167
168-
1. In the **client/** directory, create a new **.env** file.
168+
1. In the **server/** directory, create a new **.env** file.
169169
170-
1. In the **client/.env** file, add an environment variable for this value:
170+
1. In the **server/.env** file, add an environment variable for this value:
171171
172172
| Environment Variable | Value |
173173
| --- | --- |
174-
| `CONNECTION_STRING` | The connection string to the Azure Cosmos DB for MongoDB vCore cluster. For now, use `mongodb://localhost`. |
174+
| `CONNECTION_STRING` | The connection string to the Azure Cosmos DB for MongoDB vCore cluster. For now, use `mongodb://localhost:27017?directConnection=true`. |
175175
176176
```env
177177
CONNECTION_STRING=mongodb://localhost:27017?directConnection=true
@@ -270,8 +270,13 @@ Now, let's validate that the application works seamlessly with Azure Cosmos DB f
270270
```shell
271271
exit
272272
```
273+
1. In the **client/** directory, create a new **.env** file.
273274
274-
1. Open the **client/.env** file again. Then, update the value of the `CONNECTION_STRING` environment variables with the connection string you used with the mongo shell:
275+
1. In the **client/.env** file, add an environment variable for this value:
276+
277+
| Environment Variable | Value |
278+
| --- | --- |
279+
| `CONNECTION_STRING` | The connection string to the Azure Cosmos DB for MongoDB vCore cluster. Use the same connection string you used with the mongo shell:
275280
276281
```output
277282
CONNECTION_STRING=<your-connection-string>

0 commit comments

Comments
 (0)