Skip to content

Commit e02869c

Browse files
committed
fix: remove API_PATH and use versioning per route for easier version upgrade
1 parent 34b1e42 commit e02869c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.env.example

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
GA_ID=UA-xxxxxxxxx-x
22
API_BASE_URL=http://localhost:3000
3-
API_PATH=/v1

nuxt.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default {
106106
** See https://axios.nuxtjs.org/options
107107
*/
108108
axios: {
109-
baseURL: process.env.API_BASE_URL + process.env.API_PATH || 'http://localhost:3000',
109+
baseURL: process.env.API_BASE_URL || 'http://localhost:3000',
110110
},
111111
/*
112112
** Build configuration

0 commit comments

Comments
 (0)