added proxy env url usage example

master
James Lee 2017-10-20 10:28:05 -07:00 committed by Pooya Parsa
parent f1e95ff4b5
commit bbee76048c
1 changed files with 1 additions and 1 deletions

View File

@ -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' } }]
]
}
```