Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide --rewrite option for server #123

Open
TrySound opened this issue Sep 4, 2018 · 2 comments
Open

Provide --rewrite option for server #123

TrySound opened this issue Sep 4, 2018 · 2 comments

Comments

@TrySound
Copy link
Member

TrySound commented Sep 4, 2018

Rewrite option is a pair of pattern and destination similar to zeit's one.
https://github.com/zeit/serve-handler#rewrites-array

In the first implementation we may provide only simple asterisk (*) matching without templates. Here's example

--rewrite="**:/index.html" # solves the problem of SPA
--rewrite="/graphql:localhost:8080/graphql" # solves the problem of routing api
@TrySound
Copy link
Member Author

TrySound commented Sep 4, 2018

/cc @zindel @ulrikstrid

@zindel
Copy link
Member

zindel commented Sep 6, 2018

@TrySound I am supportive to this idea. We could start prototyping it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants