Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"postbuild": "sh scripts/download-install-sh.sh",
"preview": "astro preview",
"astro": "astro",
"validate": "node scripts/validate.js --all",
Expand Down
9 changes: 9 additions & 0 deletions public/.ic-assets.json5
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@
"Content-Type": "text/plain; charset=utf-8"
}
},
{
// Shell scripts served as plain text so curl | sh works correctly.
// install.sh is fetched fresh on every build so no long-lived cache.
"match": "**/*.sh",
"headers": {
"Content-Type": "text/plain; charset=utf-8",
"Cache-Control": "public, max-age=0, must-revalidate"
}
},
{
// Markdown endpoints and llms.txt — short cache so updates are visible quickly
"match": "**/*.{md,txt}",
Expand Down
6 changes: 6 additions & 0 deletions scripts/download-install-sh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
# Downloads the ICP SDK installer into the build output so it is served
# at /install.sh — mirroring the portal's download-redirected-files.sh pattern.
curl -sf https://raw.githubusercontent.com/dfinity/sdk/public-manifest/install.sh \
-o dist/install.sh \
|| echo "Warning: could not download install.sh — file will not be served"
Loading