Skip to content

Commit

Permalink
docs: region config (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGoberling authored Jun 25, 2024
1 parent c7221ee commit c5bdf4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const { AdobeState } = require('./AdobeState')
* to use ootb credentials to access the state management service. OpenWhisk
* namespace and auth can also be passed through environment variables:
* `__OW_NAMESPACE` and `__OW_API_KEY`
* @param {string} [config.region] optional region to use, accepted values: `amer` (default), `emea`
* @returns {Promise<AdobeState>} An AdobeState instance
*/
async function init (config = {}) {
Expand Down
2 changes: 2 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,11 @@ export type OpenWhiskCredentials = {
* to use ootb credentials to access the state management service. OpenWhisk
* namespace and auth can also be passed through environment variables:
* `__OW_NAMESPACE` and `__OW_API_KEY`
* @param [config.region] - optional region to use, accepted values: `amer` (default), `emea`
* @returns An AdobeState instance
*/
export function init(config?: {
ow?: OpenWhiskCredentials;
region?: string;
}): Promise<AdobeState>;

0 comments on commit c5bdf4c

Please sign in to comment.