rewriteproxy
Emulator of Firebase Hosting rewrites for your development environment.
Features
Rewrite path
Cloud Functions
It emulates this: https://firebase.google.com/docs/hosting/full-config#rewrite-functions
cleanUrls: true
It emulates this: https://firebase.google.com/docs/hosting/full-config#rewrites
Root path
Installation
$ go get github.com/morishin/rewriteproxy
or you can use standalone binary: https://github.com/morishin/rewriteproxy/releases/latest
Usage
$ rewriteproxy \
--port=3000 \
--firebase-json=/path/to/firebase.json \
--web-app-url=http://localhost:1234 \
--cloud-function-base-url=http://localhost:5001/your-project-id/us-central1
Development
Run
$ go run . \
--port=3000 \
--firebase-json=firebase.json.example \
--web-app-url=http://localhost:1234 \
--cloud-function-base-url=http://localhost:5001/your-project-id/us-central1