Fix envvar problem
This commit is contained in:
parent
0a2c180d6a
commit
e858200a7a
|
|
@ -8,9 +8,12 @@ import thunkMiddleware from 'redux-thunk';
|
||||||
|
|
||||||
import { errorMessages } from './constants';
|
import { errorMessages } from './constants';
|
||||||
|
|
||||||
const axios = require('axios');
|
import getConfig from 'next/config';
|
||||||
|
const { publicRuntimeConfig } = getConfig();
|
||||||
|
|
||||||
const api_url = process.env.REACT_APP_TURNIERE_API_URL;
|
const api_url = publicRuntimeConfig.api_url;
|
||||||
|
|
||||||
|
const axios = require('axios');
|
||||||
|
|
||||||
const actiontypes_userinfo = {
|
const actiontypes_userinfo = {
|
||||||
'REGISTER' : 'REGISTER',
|
'REGISTER' : 'REGISTER',
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
|
||||||
const withCSS = require('@zeit/next-css');
|
const withCSS = require('@zeit/next-css');
|
||||||
module.exports = withCSS();
|
module.exports = withCSS();
|
||||||
|
module.exports.publicRuntimeConfig = {
|
||||||
|
api_url: process.env.API_URL
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue