mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
example: upgrade axios-module to 5.x
This commit is contained in:
parent
e60a8e7463
commit
4d973a7d4e
@ -4,6 +4,6 @@ module.exports = {
|
|||||||
'@nuxtjs/proxy'
|
'@nuxtjs/proxy'
|
||||||
],
|
],
|
||||||
proxy: [
|
proxy: [
|
||||||
['/api/dog', { target: 'https://dog.ceo/', pathRewrite: { '^/api/dog': '/api/breeds/image/random' } }]
|
['/dog', { target: 'https://dog.ceo/', pathRewrite: { '^/dog': '/api/breeds/image/random' } }]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "nuxt-proxy",
|
"name": "nuxt-proxy",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxtjs/axios": "^4.4.0",
|
"@nuxtjs/axios": "^5.0.0",
|
||||||
"@nuxtjs/proxy": "^1.1.2",
|
"@nuxtjs/proxy": "^1.1.2",
|
||||||
"nuxt": "latest"
|
"nuxt": "latest"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user