Fix Typo on `env.mjs` (#5024)

Fixed the typo from `env.js` to `env.mjs`
pull/5027/head^2
Alexis Opolka 2023-07-14 19:03:23 +02:00 committed by GitHub
parent fd9f4e312c
commit 2f26c73dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -72,11 +72,11 @@ Once you've installed the Javascript client library, you're ready to [write data
## Get started with examples
{{% note %}}
The client examples include an [`env`](https://github.com/influxdata/influxdb-client-js/blob/master/examples/env.js) module for accessing your InfluxDB properties from environment variables or from `env.js`.
The client examples include an [`env`](https://github.com/influxdata/influxdb-client-js/blob/master/examples/env.mjs) module for accessing your InfluxDB properties from environment variables or from `env.mjs`.
The examples use these properties to interact with the InfluxDB API.
{{% /note %}}
1. Set environment variables or update `env.js` with your InfluxDB [bucket](/influxdb/v2.7/organizations/buckets/), [organization](/influxdb/v2.7/organizations/), [token](/influxdb/v2.7/security/tokens/), and [url](/influxdb/v2.7/reference/urls/).
1. Set environment variables or update `env.mjs` with your InfluxDB [bucket](/influxdb/v2.7/organizations/buckets/), [organization](/influxdb/v2.7/organizations/), [token](/influxdb/v2.7/security/tokens/), and [url](/influxdb/v2.7/reference/urls/).
```sh
export INFLUX_URL=http://localhost:8086