mirror of https://github.com/sundowndev/http.git
added proxy env url usage example
parent
f1e95ff4b5
commit
bbee76048c
|
@ -322,7 +322,7 @@ on runtime! You may use [proxy](../proxy) module for dynamically route api reque
|
|||
'@nuxtjs/proxy'
|
||||
],
|
||||
proxy: [
|
||||
['/api', { target: 'http://www.mocky.io', pathRewrite: { '^/api': '/v2' } }]
|
||||
['/api', { target: process.env.PROXY_API_URL || 'http://www.mocky.io', pathRewrite: { '^/api': '/v2' } }]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue