Skip to content

Conversation

@inlined
Copy link
Member

@inlined inlined commented Aug 3, 2021

What it says on the box

@inlined inlined requested review from mbleigh and taeold August 3, 2021 18:44
@google-cla google-cla bot added the cla: yes label Aug 3, 2021
src/v1/config.ts Outdated
// K_CONFIGURATION is only set in GCFv2
if (process.env.K_CONFIGURATION) {
throw new Error(
'RuntimeConfig is no longer available in Google Cloud Functions v2. ' +
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'RuntimeConfig is no longer available in Google Cloud Functions v2. ' +
'functions.config() is no longer available in Cloud Functions for Firebase v2. ' +

we never actually called it "Runtime Config" other than the filename, and only Firebase has it at all

delete process.env.K_CONFIGURATION;
});

it('Will never load in GCFv2', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
it('Will never load in GCFv2', () => {
it('will never load in GCFv2', () => {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants