rajnandan1 / kener

Kener is a Modern Self hosted Status Page, batteries included
https://kener.ing/
MIT License
2.5k stars 104 forks source link

problem with .env file #92

Closed ArtyomCZ closed 3 months ago

ArtyomCZ commented 6 months ago

Describe the bug I created an .env file and defined PUBLIC_KENER_FOLDER and GH_TOKEN. But it seems it is not read when npm run build so I can't run Kener in production mode. Dev mode works fine but without environment variables.

To Reproduce Steps to reproduce the behavior:

  1. Create fork of Kener repository
  2. Create .env file with variables
  3. npm i
  4. mv config/site.example.yaml config/site.yaml
  5. mv config/monitors.example.yaml config/monitors.yaml
  6. npm run build

Expected behavior I don't know if I'm missing something, but I assume this should work.

Screenshots image

Desktop (please complete the following information):

rajnandan1 commented 3 months ago

I have added support of .env file in the latest build