Commit cf130c70 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Prefix process.env to avoid inconsistency (#2647)

parent 37531726
const prod = process.env.NODE_ENV === 'production'
module.exports = {
'BACKEND_URL': prod ? 'https://api.example.com' : 'https://localhost:8080'
'process.env.BACKEND_URL': prod ? 'https://api.example.com' : 'https://localhost:8080'
}
/* global BACKEND_URL */
export default () => (
<div>Loading data from { BACKEND_URL }</div>
<div>Loading data from { process.env.BACKEND_URL }</div>
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment