Nuxt/examples/axios/nuxt.config.js
2018-03-16 19:42:06 +03:30

10 lines
192 B
JavaScript

export default {
modules: [
'@nuxtjs/axios',
'@nuxtjs/proxy'
],
proxy: [
['/dog', { target: 'https://dog.ceo/', pathRewrite: { '^/dog': '/api/breeds/image/random' } }]
]
}