From 2057c65c6bd88a13e18d0cd41fc69d699ae5a161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robson=20J=C3=BAnior?= Date: Sun, 26 Jul 2026 00:20:04 -0300 Subject: [PATCH 1/3] fix: storybook azion deploy, rollback from dev env --- apps/storybook/azion.config.mjs | 53 +++++++++++++++++---------------- apps/storybook/azion/azion.json | 36 +++++++++++----------- 2 files changed, 45 insertions(+), 44 deletions(-) diff --git a/apps/storybook/azion.config.mjs b/apps/storybook/azion.config.mjs index 639d401eb..63736ba62 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,18 @@ export default { ], workloads: [ { - name: 'webkit-storybook-dev', + name: 'webkit-storybook', active: true, infrastructure: 1, - domains: ['dev-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..649409ccc 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": [], + "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" } ] } From f76790afff31102ccf1ce1e309ae44b9fcf30095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robson=20J=C3=BAnior?= Date: Sun, 26 Jul 2026 00:26:20 -0300 Subject: [PATCH 2/3] chore: adding "domains": ["dev-webkit.azion.app"] --- apps/storybook/azion.config.mjs | 1 + apps/storybook/azion/azion.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/storybook/azion.config.mjs b/apps/storybook/azion.config.mjs index 63736ba62..c22a42b47 100644 --- a/apps/storybook/azion.config.mjs +++ b/apps/storybook/azion.config.mjs @@ -131,6 +131,7 @@ export default { name: 'webkit-storybook', active: true, infrastructure: 1, + domains: ['webkit.azion.app'], deployments: [ { name: 'webkit-storybook', diff --git a/apps/storybook/azion/azion.json b/apps/storybook/azion/azion.json index 649409ccc..95b8ad0aa 100644 --- a/apps/storybook/azion/azion.json +++ b/apps/storybook/azion/azion.json @@ -45,7 +45,7 @@ "workloads": { "id": 1773688858, "name": "webkit-storybook", - "domains": [], + "domains": ["webkit.azion.app"], "url": "https://iiirmefzrt4.map.azionedge.net", "deployment_id": [ { From 8b3124b009ec0651ccc12a8a092d0061baa4875a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robson=20J=C3=BAnior?= Date: Sun, 26 Jul 2026 00:42:52 -0300 Subject: [PATCH 3/3] ci: disable app-storybook-dev.yml --- .github/workflows/app-storybook-dev.yml | 67 ------------------------- 1 file changed, 67 deletions(-) delete mode 100644 .github/workflows/app-storybook-dev.yml diff --git a/.github/workflows/app-storybook-dev.yml b/.github/workflows/app-storybook-dev.yml deleted file mode 100644 index ee4306302..000000000 --- a/.github/workflows/app-storybook-dev.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Deploy Application Storybook (dev) - -on: - push: - branches: - - dev - paths: - - 'apps/storybook/**' - - 'packages/webkit/**' - -permissions: {} - -jobs: - deploy: - name: Deploy - runs-on: ubuntu-latest - - permissions: - contents: read - - steps: - - name: Checkout - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - fetch-depth: 0 - - - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 - with: - node-version: 'lts/*' - registry-url: 'https://registry.npmjs.org' - - - name: Setup pnpm - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 - - - name: Install workspace dependencies - run: pnpm install --frozen-lockfile - - - name: Install Azion CLI - run: | - curl -o azionlinux https://downloads.azion.com/linux/x86_64/azion - sudo mv azionlinux /usr/bin/azion - sudo chmod u+x /usr/bin/azion - - - name: CLI version - run: azion --version - - - name: Configure token - run: | - azion -t ${{ secrets.AZION_PERSONAL_TOKEN }} - azion whoami - - - name: Building Storybook - working-directory: apps/storybook - run: | - pnpm --filter @aziontech/icons build - pnpm build - - - name: Azion Build - working-directory: apps/storybook - run: | - azion build --debug - - - name: Azion Deploy - working-directory: apps/storybook - run: | - azion deploy --local --debug