# Environment variables

**URL:** <https://discourse.aurelia.io/t/environment-variables/5149>\
**Category:** Help Requests\
**Created:** [April 12, 2023, 2:37pm UTC](https://discourse.aurelia.io/t/environment-variables/5149 "2023-04-12T14:37:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![frmjp](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@frmjp](https://discourse.aurelia.io/u/frmjp)\
**Post date:** [April 12, 2023, 2:37pm UTC](https://discourse.aurelia.io/t/environment-variables/5149/1 "2023-04-12T14:37:47Z")

</div>

Hi, please help with what seems to be a bug. I am using Node v18.13.0 and aurelia-cli v3.0.1. Follow the steps to reproduce the problem:

- Create app with `au new` (app name: `my-app`);
- Select “Default ESNext App”;
- In the file `environment.production.json`, add a comma after `"testing": "false"` and then the line `"x": "y"`
- In the file `main.js`, at the bottom of `configure` function, add the line `console.log('x:', environment.x);`;
- Build the app with `npm run build`;
- Serve the app and open it on browser;
- See at console: “x: undefined”.

What is going on?

Please help. Thank you.

---

<div class="post-metadata">

**Author:** ![Sayan751](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/sayan751/32/1861_2.png) [@Sayan751](https://discourse.aurelia.io/u/Sayan751)\
**Post date:** [April 12, 2023, 7:33pm UTC](https://discourse.aurelia.io/t/environment-variables/5149/2 "2023-04-12T19:33:58Z")

</div>

AFAIK, the set of variables should be the same for all environments.
