Modernize handling of app env variables.
This commit is contained in:
parent
8952faff28
commit
1fdbfeb1b0
@ -9,5 +9,5 @@
|
||||
}
|
||||
]
|
||||
],
|
||||
"plugins": ["transform-inline-environment-variables", "graphql-tag"]
|
||||
"plugins": ["graphql-tag"]
|
||||
}
|
||||
|
||||
@ -1,3 +1 @@
|
||||
NODE_ENV='development'
|
||||
PORT='3000'
|
||||
API_URI='http://localhost:3001/graphql'
|
||||
|
||||
5
app/next.config.js
Normal file
5
app/next.config.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
API_URI: process.env.API_URI
|
||||
}
|
||||
}
|
||||
5
app/package-lock.json
generated
5
app/package-lock.json
generated
@ -1673,11 +1673,6 @@
|
||||
"traverse": "0.6.6"
|
||||
}
|
||||
},
|
||||
"babel-plugin-transform-inline-environment-variables": {
|
||||
"version": "0.4.3",
|
||||
"resolved": "https://registry.npmjs.org/babel-plugin-transform-inline-environment-variables/-/babel-plugin-transform-inline-environment-variables-0.4.3.tgz",
|
||||
"integrity": "sha1-o7CYgzU76LXiM24/8e+KXZP5xIk="
|
||||
},
|
||||
"babel-plugin-transform-react-remove-prop-types": {
|
||||
"version": "0.4.24",
|
||||
"resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz",
|
||||
|
||||
@ -18,7 +18,6 @@
|
||||
"apollo-client": "^2.6.4",
|
||||
"apollo-upload-client": "^11.0.0",
|
||||
"babel-plugin-graphql-tag": "^2.5.0",
|
||||
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
|
||||
"cross-fetch": "^3.0.4",
|
||||
"device-agnostic-ui": "^5.1.1",
|
||||
"dotenv-cli": "^3.1.0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user