Missing editable .env for superset
-
Based on the documentation, the "embedded mode" require to add an environment variable:
https://superset.apache.org/docs/configuration/networking-settings/#enabling-embedding-via-the-sdk
SUPERSET_FEATURE_EMBEDDED_SUPERSET=true
I found other sources online speaking of a config.py parameter, but this approach seems outdated and is not mentioned in the docs:
https://medium.com/@nandwalritik/embed-superset-dashboard-react-843b0a60a31f
FEATURE_FLAGS = { # Paste this along with other feature flag options "EMBEDDED_SUPERSET": True, }
Unfortunately, env.sh is located in
/app/pkg
and is read-onlyhttps://git.cloudron.io/packages/superset-app/-/blob/main/start.sh?ref_type=heads#L17
Could you change the packaging in order to be able to configure the environment variables ?
Could be related to this post
https://forum.cloudron.io/topic/12830/superset-public-access/5 -
Hi @nebulon
No it does not.This allows to make public URLs
AUTH_ROLE_PUBLIC = 'Public' PUBLIC_ROLE_LIKE = 'Gamma' FEATURE_FLAGS = { 'DASHBOARD_RBAC': True }
But it does not permits to use the embed sdk
https://www.npmjs.com/package/@superset-ui/embedded-sdkThe embed SDK references a
EMBEDDED_SUPERSET
feature flag but the Superset documentation references aSUPERSET_FEATURE_EMBEDDED_SUPERSET=true
environment variableI guess Superset docs is more accurate because I did try the feature flag and it does not activate the embed feature.