How to pass some custom data as key value pair in a shopify app extension using the app's toml file and then access that data in the extension's liquid code?

In my shopify app theme extension, I have 1 codebase linked wth multiple apps, and I want to pass the api base url of the backend to the extension based on the app, rather than hardcoding it in the liquid code. Is there any way to pass some custom data as key value pair in the app’s toml file and then access that data in the extension liquid code? Please help

You cannot directly pass custom key-value pairs (such as your backend API base URL) from the app’s TOML file to your theme extension’s Liquid code. The TOML configuration is not exposed to the theme or its Liquid context.

Have you explored using app-data metafields instead, see: Ownership