Skip to content

Commit cf130c7

Browse files
authored
Prefix process.env to avoid inconsistency (vercel#2647)
1 parent 3753172 commit cf130c7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const prod = process.env.NODE_ENV === 'production'
22

33
module.exports = {
4-
'BACKEND_URL': prod ? 'https://api.example.com' : 'https://localhost:8080'
4+
'process.env.BACKEND_URL': prod ? 'https://api.example.com' : 'https://localhost:8080'
55
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* global BACKEND_URL */
2-
31
export default () => (
4-
<div>Loading data from { BACKEND_URL }</div>
2+
<div>Loading data from { process.env.BACKEND_URL }</div>
53
)

0 commit comments

Comments
 (0)