Replace hardcoded Grafana token with environment variable #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Grafana API token is hardcoded in dashboardAPI node source code.
Solution
Read from environment variable (e.g., GRAFANA_TOKEN) with fallback.
Files affected
Replaced hardcoded Grafana token with process.env.GRAFANA_TOKEN (with current value as fallback for backward compatibility).