File tree Expand file tree Collapse file tree 2 files changed +632
-72
lines changed Expand file tree Collapse file tree 2 files changed +632
-72
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ export default {
6363 ** Nuxt.js modules
6464 */
6565 modules : [
66+ '@nuxtjs/axios' ,
67+ '@nuxtjs/proxy' ,
6668 // Doc: https://bootstrap-vue.js.org/docs/
6769 'bootstrap-vue/nuxt' ,
6870 // Doc: https://www.npmjs.com/package/vue-github-buttons#using-with-nuxt
@@ -75,7 +77,20 @@ export default {
7577 bootstrapVueCSS : false // or `bvCSS`
7678 } ,
7779
78- // Environment variable configuration
80+ // @nuxtjs /axios plugin configuration
81+ axios : {
82+ baseURL : '/'
83+ } ,
84+
85+ // @nuxtjs /proxy configuration
86+ proxy : {
87+ '/.netlify' : {
88+ target : 'http://localhost:9000' ,
89+ pathRewrite : { '^/.netlify/functions' : '' }
90+ }
91+ } ,
92+
93+ // Frontend environment variables configuration
7994 // Doc: https://nuxtjs.org/api/configuration-env
8095 env : {
8196 HOTJAR_SITE_ID : process . env . HOTJAR_SITE_ID ? Number ( process . env . HOTJAR_SITE_ID ) : undefined ,
You can’t perform that action at this time.
0 commit comments