Skip to content

Commit 29ef6db

Browse files
committed
Added baseURL and browserBaseURL to nuxt.config.js axios config
1 parent 5b11c7b commit 29ef6db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nuxt.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ export default {
7979

8080
// @nuxtjs/axios plugin configuration
8181
axios: {
82-
prefix: '/'
82+
prefix: '/',
83+
baseUrl: '/', // For the server
84+
browserBaseURL: '/'
8385
},
8486

8587
// @nuxtjs/proxy configuration

0 commit comments

Comments
 (0)