Skip to content

Instantly share code, notes, and snippets.

@ulrikstrid
Created August 9, 2017 11:24
Show Gist options
  • Save ulrikstrid/b693f94492dbdfb01c8c0bdc1a97f5a6 to your computer and use it in GitHub Desktop.
Save ulrikstrid/b693f94492dbdfb01c8c0bdc1a97f5a6 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"api": {
"matchCondition": {
"route": "/api/{*path}"
},
"backendUri": "https://<APP_URL>/api/{path}",
"responseOverrides": {
"response.headers.Content-Type": "application/json"
}
},
"spa root": {
"matchCondition": {
"route": "/"
},
"backendUri": "https://<BLOB_URL>/spa/index.html"
},
"spa root catch-all": {
"matchCondition": {
"route": "/{*path}"
},
"backendUri": "https://<BLOB_URL>/spa/index.html"
},
"spa static": {
"matchCondition": {
"route": "/static/{*file}"
},
"backendUri": "https://<BLOB_URL>/spa/static/{file}"
},
"spa root static": {
"matchCondition": {
"route": "/{file}.{ending}"
},
"backendUri": "https://<BLOB_URL>/spa/{file}.{ending}"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment