diff --git a/examples/with-universal-configuration/env-config.js b/examples/with-universal-configuration/env-config.js index 47555f89..a43d4ef6 100644 --- a/examples/with-universal-configuration/env-config.js +++ b/examples/with-universal-configuration/env-config.js @@ -1,5 +1,5 @@ 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' } diff --git a/examples/with-universal-configuration/pages/index.js b/examples/with-universal-configuration/pages/index.js index afb3c4ee..c473d1b6 100644 --- a/examples/with-universal-configuration/pages/index.js +++ b/examples/with-universal-configuration/pages/index.js @@ -1,5 +1,3 @@ -/* global BACKEND_URL */ - export default () => ( -
Loading data from { BACKEND_URL }
+
Loading data from { process.env.BACKEND_URL }
)