Skip to content

Commit

Permalink
docs: fix syntax highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 25, 2020
1 parent 8fc02f7 commit 6dd299e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docs/content/en/options.md
Expand Up @@ -5,18 +5,22 @@ position: 4
category: 'Getting started'
---


You can pass different options using module inline options:

```
['@nuxtjs/axios', { proxy: true }]
```js
export default {
modules: [
['@nuxtjs/axios', { proxy: true }]
]
}
```

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

**nuxt.config.js**
```
{

```js
export default {
modules: [
'@nuxtjs/axios'
],
Expand Down Expand Up @@ -70,7 +74,6 @@ They can be customized with `API_PREFIX`, `API_HOST` (or `HOST`) and `API_PORT`

Default value of `prefix` is `/`.


## `baseURL`

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

**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`.


## `browserBaseURL`

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

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


## `https`

* Default: `false`

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



## `progress`

* Default: `true`
Expand Down

0 comments on commit 6dd299e

Please sign in to comment.