Skip to content

Commit ac14cb8

Browse files
marc0oloclaude
andauthored
chore: migrate frontend canisters from asset-canister to static-site recipe (#1449)
* chore: migrate frontend canisters from asset-canister to static-site recipe Swap the frontend recipe from @dfinity/asset-canister@v2.2.1 to @dfinity/static-site@v0.3.0 across all examples, matching the change already applied to hosting/oisy-signer-demo. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * chore: bump static-site recipe to v0.3.1 v0.3.1 includes the certified-assets canister fix, unblocking the migration. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci: raise plugin compute limit for unity-webgl and godot hosting examples The certified-assets sync plugin brotli-compresses the large Unity WebGL and Godot HTML5 asset bundles, which exceeds the default 60s plugin compute limit. Set ICP_CLI_PLUGIN_COMPUTE_LIMIT_SECS=300 (available in the latest icp-cli) for these two workflows. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent cf1b1f8 commit ac14cb8

43 files changed

Lines changed: 47 additions & 41 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/hosting-godot-html5-template-example.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ jobs:
2020
language: all
2121
working-directory: hosting/godot-html5-template
2222
run: |
23+
# Brotli-compressing the large Godot HTML5 asset bundle can exceed the
24+
# default 60s plugin compute limit; raise it for the asset sync.
25+
export ICP_CLI_PLUGIN_COMPUTE_LIMIT_SECS=300
2326
icp network start -d
2427
icp deploy

‎.github/workflows/hosting-unity-webgl-example.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ jobs:
2020
language: all
2121
working-directory: hosting/unity-webgl-template
2222
run: |
23+
# Brotli-compressing the large Unity WebGL asset bundle exceeds the
24+
# default 60s plugin compute limit; raise it for the asset sync.
25+
export ICP_CLI_PLUGIN_COMPUTE_LIMIT_SECS=300
2326
icp network start -d
2427
icp deploy

‎hosting/godot-html5-template/icp.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
canisters:
22
- name: frontend
33
recipe:
4-
type: "@dfinity/asset-canister@v2.2.1"
4+
type: "@dfinity/static-site@v0.3.1"
55
configuration:
66
dir: dist
77
build:

‎hosting/oisy-signer-demo/icp.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
canisters:
22
- name: frontend
33
recipe:
4-
type: "@dfinity/asset-canister@v2.2.1"
4+
type: "@dfinity/static-site@v0.3.1"
55
configuration:
66
dir: frontend/dist
77
build:

‎hosting/photo-storage/icp.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
canisters:
22
- name: frontend
33
recipe:
4-
type: "@dfinity/asset-canister@v2.2.1"
4+
type: "@dfinity/static-site@v0.3.1"
55
configuration:
66
dir: dist
77
build:

‎hosting/react/icp.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
canisters:
22
- name: frontend
33
recipe:
4-
type: "@dfinity/asset-canister@v2.2.1"
4+
type: "@dfinity/static-site@v0.3.1"
55
configuration:
66
dir: frontend/dist
77
build:

‎hosting/static-website/icp.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
canisters:
22
- name: frontend
33
recipe:
4-
type: "@dfinity/asset-canister@v2.2.1"
4+
type: "@dfinity/static-site@v0.3.1"
55
configuration:
66
dir: dist
77
build:

‎hosting/unity-webgl-template/icp.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
canisters:
22
- name: frontend
33
recipe:
4-
type: "@dfinity/asset-canister@v2.2.1"
4+
type: "@dfinity/static-site@v0.3.1"
55
configuration:
66
dir: dist
77
build:

‎motoko/cert-var/icp.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ canisters:
55

66
- name: frontend
77
recipe:
8-
type: "@dfinity/asset-canister@v2.2.1"
8+
type: "@dfinity/static-site@v0.3.1"
99
configuration:
1010
dir: frontend/dist
1111
build:

‎motoko/daily_planner/icp.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ canisters:
55

66
- name: frontend
77
recipe:
8-
type: "@dfinity/asset-canister@v2.2.1"
8+
type: "@dfinity/static-site@v0.3.1"
99
configuration:
1010
dir: frontend/dist
1111
build:

0 commit comments

Comments
 (0)