#Read app-config.yaml setting at Custom Field Extensions.
18 messages · Page 1 of 1 (latest)
Hi @normal flicker, looks fine, without seeing the config schema for this a guess is that it could be related to the visibility: https://backstage.io/docs/conf/defining#visibility.
I tried to create the config.d.ts file into package/app. The I edit the package.json to add
{
// ...
"files": [
// ...
"config.d.ts"
],
"configSchema": "config.d.ts"
}
But it does not work.
Can you share the config.d.ts ?
export interface Config {
/**
* Visible in frontend and backend
* @visibility frontend
*/
secrets: {
token: string;
};
}
Now, I added this file and the package.json into the custom field extension that I created. But the problem persists.
You need to add visibility to the token as well, it's need on each property
I added:
visibility: frontend
Did that work?
So it looks like this and it still doesn't work?
export interface Config {
/**
* Visible in frontend and backend
* @visibility frontend
*/
secrets: {
/**
* Visible in frontend and backend
* @visibility frontend
*/
token: string,
};
}
yes, it does not work
OK, then I don't have anything further to suggest sadly
@keen sedge where the config.d.ts should be keep ?
In packages/app as you mentioned should be fine.