Skip to content
On this page

functions

Initializes Firebase Functions and makes it available via $fire.functions and $fireModule.functions.

  • Type: Boolean or Object
  • Default: false
js
functions: {
  location: 'us-central1',
  emulatorPort: 12345,
  emulatorHost: 'http://10.10.10.3',
}

location

  • Type: String
  • Default: us-central1

More information here.

emulatorPort

  • Type: Integer
  • Default: null

Sets up useFunctionsEmulator("http://localhost:EMULATOR_PORT") to point to a Cloud Functions emulator running locally instead of the production one.

More information in the official Firebase API Docs and Functions Docs.

emulatorHost

  • Type: String
  • Default: http://localhost,

Changes the host used for the Cloud Functions emulator. Only applies if the emulatorPort is set.