File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export HMD_API_ACCESS_TOKEN=MY_ACCESS_TOKEN
38
38
Or in JSON file (` ~/.hackmd/config.json ` ):
39
39
``` json
40
40
{
41
- "accesstoken " : " MY_ACCESS_TOKEN"
41
+ "accessToken " : " MY_ACCESS_TOKEN"
42
42
}
43
43
```
44
44
### Set self-hosted API endpoint (optional)
@@ -67,7 +67,7 @@ All available configurations are listed in the table below.
67
67
| Config key | Environment Variable | Data Type | Example Value | Description |
68
68
| ------------ | :--------------------------------------------- | ----------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
69
69
| ` hackmdAPIEndpointURL ` | ` HMD_API_ENDPOINT_URL ` | * ` string ` * | ` https://my.hackmd-ee.api.endpoint ` | The self-hosted API endpoint URL |
70
- | ` accesstoken ` | ` HMD_API_ACCESS_TOKEN ` | * ` string ` * | ` MY_ACCESS_TOKEN ` | Token to access HackMD APIs |
70
+ | ` accessToken ` | ` HMD_API_ACCESS_TOKEN ` | * ` string ` * | ` MY_ACCESS_TOKEN ` | Token to access HackMD APIs |
71
71
72
72
73
73
## Commands
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ import API from '@hackmd/api'
2
2
3
3
import config from './config'
4
4
5
- export const APIClient = new API ( config . accesstoken as string , config . hackmdAPIEndpointURL )
5
+ export const APIClient = new API ( config . accessToken as string , config . hackmdAPIEndpointURL )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const defaultConfig = {
18
18
19
19
const envConfig = {
20
20
hackmdAPIEndpointURL : process . env . HMD_API_ENDPOINT_URL ,
21
- accesstoken : process . env . HMD_API_ACCESS_TOKEN
21
+ accessToken : process . env . HMD_API_ACCESS_TOKEN
22
22
}
23
23
24
24
// look for a readable config file; we can merge it with the env.
You can’t perform that action at this time.
0 commit comments