Compare commits

...

1 Commits

Author SHA1 Message Date
Tania B.
0f3a5cd3a5 Use subpath for ofrep api url 2026-01-14 14:38:25 +01:00

View File

@@ -16,8 +16,11 @@ export async function initOpenFeature() {
* to allow for overrides https://github.com/open-feature/js-sdk-contrib/tree/main/libs/providers/multi-provider
*/
const subPath = config.appSubUrl || '';
const baseUrl = `${subPath}/apis/features.grafana.app/v0alpha1/namespaces/${config.namespace}`;
const ofProvider = new OFREPWebProvider({
baseUrl: '/apis/features.grafana.app/v0alpha1/namespaces/' + config.namespace,
baseUrl: baseUrl,
pollInterval: -1, // disable polling
timeoutMs: 5_000,
});