firebase runs locally and not live code example
Example 1: firebase emulators start
firebase emulators:start
Example 2: deploy to firebase hosting test
firebase hosting:channel:deploy CHANNEL_ID
firebase emulators:start
firebase hosting:channel:deploy CHANNEL_ID