Package Exports
- @capgo/capacitor-env
- @capgo/capacitor-env/dist/esm/index.js
- @capgo/capacitor-env/dist/plugin.cjs.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@capgo/capacitor-env) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@capgo/capacitor-env
Set Env var in Capacitor config and read them at runtime, This plugin is helpfull for multitenant app or white label, when you want to keep the same code but some config have to differ.
Install
npm install @capgo/capacitor-env
npx cap syncAPI
getKey(...)
getKey(options: { key: string; }) => Promise<{ value: string; }>| Param | Type |
|---|---|
options |
{ key: string; } |
Returns: Promise<{ value: string; }>
