We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3753172 commit cf130c7Copy full SHA for cf130c7
examples/with-universal-configuration/env-config.js
@@ -1,5 +1,5 @@
1
const prod = process.env.NODE_ENV === 'production'
2
3
module.exports = {
4
- 'BACKEND_URL': prod ? 'https://api.example.com' : 'https://localhost:8080'
+ 'process.env.BACKEND_URL': prod ? 'https://api.example.com' : 'https://localhost:8080'
5
}
examples/with-universal-configuration/pages/index.js
@@ -1,5 +1,3 @@
-/* global BACKEND_URL */
-
export default () => (
- <div>Loading data from { BACKEND_URL }</div>
+ <div>Loading data from { process.env.BACKEND_URL }</div>
)
0 commit comments