Skip to content

morishin/rewriteproxy

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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