diff --git a/apps/storybook/azion.config.mjs b/apps/storybook/azion.config.mjs index 639d401eb..c22a42b47 100644 --- a/apps/storybook/azion.config.mjs +++ b/apps/storybook/azion.config.mjs @@ -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', @@ -58,8 +58,9 @@ 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: [ [ @@ -67,7 +68,8 @@ export default { 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)$' } ] ], @@ -75,20 +77,24 @@ export default { { 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: [ [ @@ -96,8 +102,7 @@ export default { 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: '^\/' } ] ], @@ -105,17 +110,14 @@ export default { { 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' } ] } @@ -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' } } } diff --git a/apps/storybook/azion/azion.json b/apps/storybook/azion/azion.json index 8a6d3c876..95b8ad0aa 100644 --- a/apps/storybook/azion/azion.json +++ b/apps/storybook/azion/azion.json @@ -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, @@ -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" } ] }