Skip to content
Merged
54 changes: 28 additions & 26 deletions apps/storybook/azion.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,26 @@ export default {
},
storage: [
{
name: 'webkit-storybook-dev',
prefix: '20260622162046',
name: 'webkit-storybook',
prefix: '20260316141821',
dir: './dist',
workloadsAccess: 'read_only'
}
],
connectors: [
{
name: 'webkit-storybook-dev',
name: 'webkit-storybook',
active: true,
type: 'storage',
attributes: {
bucket: 'webkit-storybook-dev',
prefix: '20260622162046'
bucket: 'webkit-storybook',
prefix: '20260316141821'
}
}
],
applications: [
{
name: 'webkit-storybook-dev',
name: 'webkit-storybook',
cache: [
{
name: 'webkit-storybook',
Expand All @@ -58,64 +58,66 @@ export default {
rules: {
request: [
{
name: 'Redirect to index.html',
description: 'Handle all routes by rewriting to index.html for client-side routing',
name: 'Deliver Static Assets and Set Cache Policy',
description:
'Deliver static assets directly from storage and set cache policy',
active: true,
criteria: [
[
{
variable: '${uri}',
conditional: 'if',
operator: 'matches',
argument: '^\/'
argument:
'\.(jpg|jpeg|png|gif|bmp|webp|svg|ico|ttf|otf|woff|woff2|eot|pdf|doc|docx|xls|xlsx|ppt|pptx|mp4|webm|mp3|wav|ogg|css|js|json|xml|html|txt|csv|zip|rar|7z|tar|gz|webmanifest|map|md|yaml|yml)$'
}
]
],
behaviors: [
{
type: 'set_connector',
attributes: {
value: 'webkit-storybook-dev'
value: 'webkit-storybook'
}
},
{
type: 'rewrite_request',
type: 'set_cache_policy',
attributes: {
value: '/index.html'
value: 'webkit-storybook'
}
},
{
type: 'deliver'
}
]
},
{
name: 'Deliver Static Assets and Set Cache Policy',
description: 'Deliver static assets directly from storage and set cache policy',
name: 'Redirect to index.html',
description:
'Handle all routes by rewriting to index.html for client-side routing',
active: true,
criteria: [
[
{
variable: '${uri}',
conditional: 'if',
operator: 'matches',
argument:
'\.(jpg|jpeg|png|gif|bmp|webp|svg|ico|ttf|otf|woff|woff2|eot|pdf|doc|docx|xls|xlsx|ppt|pptx|mp4|webm|mp3|wav|ogg|css|js|json|xml|html|txt|csv|zip|rar|7z|tar|gz|webmanifest|map|md|yaml|yml)$'
argument: '^\/'
}
]
],
behaviors: [
{
type: 'set_connector',
attributes: {
value: 'webkit-storybook-dev'
value: 'webkit-storybook'
}
},
{
type: 'set_cache_policy',
type: 'rewrite_request',
attributes: {
value: 'webkit-storybook'
value: '/index.html'
}
},
{
type: 'deliver'
}
]
}
Expand All @@ -126,19 +128,19 @@ export default {
],
workloads: [
{
name: 'webkit-storybook-dev',
name: 'webkit-storybook',
active: true,
infrastructure: 1,
domains: ['dev-webkit.azion.app'],
domains: ['webkit.azion.app'],
deployments: [
{
name: 'webkit-storybook-dev',
name: 'webkit-storybook',
current: true,
active: true,
strategy: {
type: 'default',
attributes: {
application: 'webkit-storybook-dev'
application: 'webkit-storybook'
}
}
}
Expand Down
36 changes: 18 additions & 18 deletions apps/storybook/azion/azion.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "webkit-storybook-dev",
"bucket": "webkit-storybook-dev",
"name": "webkit-storybook",
"bucket": "webkit-storybook",
"preset": "html",
"env": "production",
"prefix": "20260622162046",
"prefix": "20260316141821",
"rotate-prefix": true,
"not-first-run": true,
"function": [],
"application": {
"id": 1782150864,
"name": "webkit-storybook-dev"
"id": 1773684562,
"name": "webkit-storybook"
},
"domain": {
"id": 0,
Expand All @@ -25,39 +25,39 @@
"created": false,
"rules": [
{
"id": 605361,
"name": "Redirect to index.html",
"id": 524999,
"name": "Deliver Static Assets and Set Cache Policy",
"phase": "request"
},
{
"id": 605360,
"name": "Deliver Static Assets and Set Cache Policy",
"id": 525000,
"name": "Redirect to index.html",
"phase": "request"
}
]
},
"cache-settings": [
{
"id": 297448,
"id": 274966,
"name": "webkit-storybook"
}
],
"workloads": {
"id": 1782157441,
"name": "webkit-storybook-dev",
"domains": ["dev-webkit.azion.app"],
"url": "https://btkatoztsbw.map.azionedge.net",
"id": 1773688858,
"name": "webkit-storybook",
"domains": ["webkit.azion.app"],
"url": "https://iiirmefzrt4.map.azionedge.net",
"deployment_id": [
{
"id": 235035,
"name": "webkit-storybook-dev"
"id": 186821,
"name": "webkit-storybook"
}
]
},
"connectors": [
{
"id": 48496,
"name": "webkit-storybook-dev"
"id": 10418,
"name": "webkit-storybook"
}
]
}
Loading