.env.production file eliminated ! (-> .env)
.env.production worked in local added myconfig messagepopup working (but not ready yet) added Graphql (only module)
This commit is contained in:
@@ -5,7 +5,6 @@ import {clone} from 'lodash'
|
||||
import * as Types from './ApiTypes'
|
||||
|
||||
export const API_URL = process.env.API_URL
|
||||
export const APP_BASE = process.env.NODE_ENV === 'development' ? 'http://localhost:5000/' : 'http://myip:5000/'
|
||||
export const axiosInstance: AxiosInstance = axios.create({
|
||||
baseURL: API_URL,
|
||||
headers: {
|
||||
|
||||
@@ -2,7 +2,7 @@ import Request from './Instance'
|
||||
import sendRequest from './Inst-Pao'
|
||||
export * from './ApiTypes'
|
||||
import axios from 'axios'
|
||||
export {addAuthHeaders, removeAuthHeaders, API_URL, APP_BASE} from './Instance'
|
||||
export {addAuthHeaders, removeAuthHeaders, API_URL} from './Instance'
|
||||
// import {AlgoliaSearch} from './AlgoliaController'
|
||||
import Paths from '@paths'
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ const b = storeBuilder.module<IGlobalState>('GlobalModule', state)
|
||||
// Getters
|
||||
namespace Getters {
|
||||
|
||||
const conta = b.read(state => state.conta , 'conta')
|
||||
const conta = b.read(state => state.conta, 'conta')
|
||||
|
||||
export const getters = {
|
||||
get conta() {
|
||||
@@ -52,7 +52,9 @@ const stateGetter = b.state()
|
||||
|
||||
// Module
|
||||
const GlobalModule = {
|
||||
get state() { return stateGetter()},
|
||||
get state() {
|
||||
return stateGetter()
|
||||
},
|
||||
getters: Getters.getters,
|
||||
mutations: Mutations.mutations,
|
||||
actions: Actions.actions
|
||||
|
||||
Reference in New Issue
Block a user