Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update use of local destinations in tutorial #1878

Merged
merged 6 commits into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions docs-js/tutorials/getting-started/2-execute-odata-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -265,25 +265,26 @@ In `Node.js` applications, it is common to use a `.env` file to maintain such en
Create a `.env` file in the root directory of your project and define the destinations environment variable as follows:

```ts
destinations = [
destinations = '[
{
name: '<DESTINATIONNAME>',
url: '<URL to your system>',
username: '<USERNAME>',
password: '<PASSWORD>'
"name": "<DESTINATIONNAME>",
"url": "<URL to your system>",
"username": "<USERNAME>",
"password": "<PASSWORD>"
}
];
]'
```

:::note
Every environment variable in the `.env` file has to be defined on one line.
You can add more destinations to the array.
For more information on local destinations, check out our [destination documentation](../../features/connectivity/destinations#local-environment-variable).
:::

This is what it would look like for the mock server:

```ts
destinations = [{ name: 'MockServer', url: 'http://localhost:3000' }];
destinations = '[{ "name": "MockServer", "url": "http://localhost:3000" }]';
```

:::caution
Expand Down