rajnandan1 / kener

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

problem with .env file #92

Open ArtyomCZ opened 1 month ago

ArtyomCZ commented 1 month 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):