diff --git a/admin/.env.dist b/admin/.env.dist new file mode 100644 index 000000000..a056837ab --- /dev/null +++ b/admin/.env.dist @@ -0,0 +1,2 @@ +GRAPHQL_URI=http://localhost:4000/graphql +WALLET_AUTH_URL=http://localhost/vue/authenticate?token=$1 \ No newline at end of file diff --git a/admin/src/config/index.js b/admin/src/config/index.js index eab63e903..a6c728498 100644 --- a/admin/src/config/index.js +++ b/admin/src/config/index.js @@ -17,8 +17,9 @@ const environment = { PRODUCTION: process.env.NODE_ENV === 'production' || false, } -const server = { +const endpoints = { GRAPHQL_URI: process.env.GRAPHQL_URI || 'http://localhost:4000/graphql', + WALLET_AUTH_URL: process.env.WALLET_AUTH_URL || 'http://localhost:3000/vue/authenticate?token=$1' } const options = {} @@ -26,7 +27,7 @@ const options = {} const CONFIG = { ...version, ...environment, - ...server, + ...endpoints, ...options, }