Skip to content

Instantly share code, notes, and snippets.

@lucis
Created May 25, 2023 23:39
Show Gist options
  • Save lucis/3c24aa0f708a791b5121731a68d16817 to your computer and use it in GitHub Desktop.
Save lucis/3c24aa0f708a791b5121731a68d16817 to your computer and use it in GitHub Desktop.
Using proxies or redirects in deco.cx
{
"audiences": [
{
"name": "vtex_legacy_proxy",
"routes": [
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
}
},
"pathTemplate": "/checkout"
},
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
}
},
"pathTemplate": "/checkout/*"
},
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
}
},
"pathTemplate": "/files/*"
},
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
}
},
"pathTemplate": "/arquivos/*"
},
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
}
},
"pathTemplate": "/account/*"
},
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
}
},
"pathTemplate": "/login"
},
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
}
},
"pathTemplate": "/no-cache/*"
},
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
}
},
"pathTemplate": "/api/*"
},
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
}
},
"pathTemplate": "/_v/segment/*"
},
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
}
},
"pathTemplate": "/_v/public/*"
},
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
}
},
"pathTemplate": "/_v/private/*"
}
],
"matcher": {
"__resolveType": "$live/matchers/MatchAlways.ts"
},
"overrides": [],
"__resolveType": "$live/flags/audience.ts"
}
],
"__resolveType": "$live/handlers/routesSelection.ts"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment