Skip to content

Conversation

@zhiyuanliang-ms
Copy link
Member

No description provided.

src/load.ts Outdated
* @param endpoint The URL to the CDN.
* @param options Optional parameters.
*/
export async function loadCdn(endpoint: URL | string, options?: AzureAppConfigurationOptions): Promise<AzureAppConfiguration>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if it makes more sense to name it loadFromCDN insead.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will use camelCase, so it will be loadFromCdn

src/load.ts Outdated
export async function loadFromCdn(endpoint: URL | string, options?: AzureAppConfigurationOptions): Promise<AzureAppConfiguration>;

export async function loadFromCdn(
endpoint: string | URL,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it will be too much to call it cdnEndpoint or it's clearer? The reason I'm asking is because we also have the other parameter appConfigOptions. Will that confuse users that it's appconfig endpoint?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am ok with cdnEndpoint. Updated.

src/load.ts Outdated
* @param cdnEndpoint The URL to the CDN.
* @param appConfigOptions Optional parameters.
*/
export async function loadFromCdn(endpoint: URL | string, options?: AzureAppConfigurationOptions): Promise<AzureAppConfiguration>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

endpoint

Should this be updated too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird, I remembered I updated this in the commit, will update it again

@zhiyuanliang-ms
Copy link
Member Author

Verified Azure Frond Door + sas token can get kvs from app config. So merge this PR.

@zhiyuanliang-ms zhiyuanliang-ms merged commit 6dae81a into preview Oct 31, 2024
4 checks passed
@zhiyuanliang-ms zhiyuanliang-ms deleted the zhiyuanliang/load-cdn branch October 31, 2024 05:26
zhiyuanliang-ms added a commit that referenced this pull request Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants