Skip to content

Commit 6dd299e

Browse files
committed
docs: fix syntax highlight
1 parent 8fc02f7 commit 6dd299e

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

docs/content/en/options.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,22 @@ position: 4
55
category: 'Getting started'
66
---
77

8-
98
You can pass different options using module inline options:
109

11-
```
12-
['@nuxtjs/axios', { proxy: true }]
10+
```js
11+
export default {
12+
modules: [
13+
['@nuxtjs/axios', { proxy: true }]
14+
]
15+
}
1316
```
1417

1518
or `axios` section in `nuxt.config.js`:
1619

1720
**nuxt.config.js**
18-
```
19-
{
21+
22+
```js
23+
export default {
2024
modules: [
2125
'@nuxtjs/axios'
2226
],
@@ -70,7 +74,6 @@ They can be customized with `API_PREFIX`, `API_HOST` (or `HOST`) and `API_PORT`
7074

7175
Default value of `prefix` is `/`.
7276

73-
7477
## `baseURL`
7578

7679
* Default: `http://[HOST]:[PORT][PREFIX]`
@@ -81,7 +84,6 @@ Environment variable `API_URL` can be used to **override** `baseURL`.
8184

8285
**WARNING:** `baseURL` and `proxy` cannot be used at the same time, so when the `proxy` option is in use, you need to define `prefix` instead of `baseURL`.
8386

84-
8587
## `browserBaseURL`
8688

8789
* Default: `baseURL`
@@ -91,15 +93,12 @@ Defines the base URL which is used and prepended to make client side requests.
9193

9294
The environment variable `API_URL_BROWSER` can be used to **override** `browserBaseURL`.
9395

94-
9596
## `https`
9697

9798
* Default: `false`
9899

99100
If set to `true`, `http://` in both `baseURL` and `browserBaseURL` will be changed into `https://`.
100101

101-
102-
103102
## `progress`
104103

105104
* Default: `true`

0 commit comments

Comments
 (0)