Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit c651e0e

Browse files
committed
docs: redirect EMULATOR_HOST users to apiEndpoint
1 parent 5792a3c commit c651e0e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/storage.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ export class Storage extends Service {
396396
let apiEndpoint = 'https://storage.googleapis.com';
397397
let customEndpoint = false;
398398

399+
// Note: EMULATOR_HOST is an experimental configuration variable. Use apiEndpoint instead.
399400
const EMULATOR_HOST = process.env.STORAGE_EMULATOR_HOST;
400401
if (typeof EMULATOR_HOST === 'string') {
401402
apiEndpoint = Storage.sanitizeEndpoint(EMULATOR_HOST);
@@ -409,6 +410,7 @@ export class Storage extends Service {
409410

410411
options = Object.assign({}, options, {apiEndpoint});
411412

413+
// Note: EMULATOR_HOST is an experimental configuration variable. Use apiEndpoint instead.
412414
const baseUrl = EMULATOR_HOST || `${options.apiEndpoint}/storage/v1`;
413415

414416
const config = {

‎test/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ describe('Storage', () => {
228228
});
229229

230230
describe('STORAGE_EMULATOR_HOST', () => {
231+
// Note: EMULATOR_HOST is an experimental configuration variable. Use apiEndpoint instead.
231232
const EMULATOR_HOST = 'https://internal.benchmark.com/path';
232233
before(() => {
233234
process.env.STORAGE_EMULATOR_HOST = EMULATOR_HOST;

0 commit comments

Comments
 (0)