Azure / Azure/static-web-apps

Rewrite based on domain

Open
#885 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

Does it's possible to provide a route condition that we could determine rewrite rule by the domain name?
Such as:
```
"routes": [
{
"domain": "a.com",
"route": "/",
"rewrite": "/a"
},
{
"domain": "b.com",
"route": "/",
"rewrite": "/b"
}
]
```
Some times we provide different domain for same source code, and we want provide different domain for different platform. And rewrite it to different path but share with same repo.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.