Skip to content

morishin/rewriteproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rewriteproxy

Emulator of Firebase Hosting rewrites for your development environment.

Features

Rewrite path

rewrite_path

Cloud Functions

It emulates this: https://firebase.google.com/docs/hosting/full-config#rewrite-functions

cloud_functions

cleanUrls: true

It emulates this: https://firebase.google.com/docs/hosting/full-config#rewrites

clean_urls1

clean_urls2

Root path

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages