play14team / strapi-plugin-map-field

Strapi plugin that provides a Mapbox custom field
MIT License
6 stars 3 forks source link

Uncaught (in promise) ReferenceError: process is not defined. Cannot read access token from K8s env var. #12

Open fmlukaszmatusik opened 3 months ago

fmlukaszmatusik commented 3 months ago

I'm trying to use newest plugin with Strapi 4.25.0 and I cannot edit any content I've put Mapbox into.

Looks like Mapbox plugin cannot read "process", so it cannot read mapbox api key. I'm getting

Uncaught (in promise) ReferenceError: process is not defined

Screenshot 2024-06-12 at 14 57 34

Is there any solution for that?

We use envs in Kubernetes, all the other environmental variables works fine. But this plugin seems to have trouble reading Kubernetes env variables instead of .env ones. Shouldn't key be configured via config file?