We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932abc0 commit 109c326Copy full SHA for 109c326
docs/helpers.md
@@ -17,7 +17,7 @@ Example: (`plugins/axios.js`)
17
```js
18
export default function ({ $axios, redirect }) {
19
$axios.onError(error => {
20
- if(error.code === 500) {
+ if(error.response.status === 500) {
21
redirect('/sorry')
22
}
23
})
docs/options.md
@@ -18,6 +18,8 @@ Base URL which is used and prepended to make requests in server side.
Environment variable `API_URL` can be used to **override** `baseURL`.
+**Note:** `baseURL` and `proxy` doesn't work together, you need to use `prefix` instead.
+
### `browserBaseURL`
24
25
* Default: `baseURL` (or `prefix` when `options.proxy` is enabled)
0 commit comments