diff --git a/examples/axios/nuxt.config.js b/examples/axios/nuxt.config.js index 350033d068..19d049afa8 100644 --- a/examples/axios/nuxt.config.js +++ b/examples/axios/nuxt.config.js @@ -4,6 +4,6 @@ module.exports = { '@nuxtjs/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' } }] ] } diff --git a/examples/axios/package.json b/examples/axios/package.json index 296b93f26d..377e6287c9 100644 --- a/examples/axios/package.json +++ b/examples/axios/package.json @@ -2,7 +2,7 @@ "name": "nuxt-proxy", "version": "1.0.0", "dependencies": { - "@nuxtjs/axios": "^4.4.0", + "@nuxtjs/axios": "^5.0.0", "@nuxtjs/proxy": "^1.1.2", "nuxt": "latest" },