Skip to content
Franklin Chieze edited this page Oct 16, 2020 · 3 revisions
region(...regions: Region[])

The region decorator is an auxiliary decorator that specifies the region (or list of regions) a function should be deployed to.

parameters

  • regions
    This is an optional list of regions where the function should be deployed to.

example

import { func, region, onHttpsRequest } from 'firefuncs';

export class Records {
    @func()
    @region('europe-west1')
    @onHttpsRequest()
    public async hello(req, res) {
        res.send('Hello World!');
    }
}