wehub-cloud-tpl-static-site-function
44fa265a3e
- buildCommand regenerates public/assets/big.bin (512MiB) at build time - gitignore the generated blob - add a download card at the top of the page, above status/upload
13 行
362 B
JSON
13 行
362 B
JSON
{
|
|
"type": "static",
|
|
"outputDirectory": "public",
|
|
"installCommand": "npm ci --omit=dev --prefix functions/api",
|
|
"buildCommand": "mkdir -p public/assets && dd if=/dev/zero of=public/assets/big.bin bs=1048576 count=512",
|
|
"routes": [
|
|
{ "path": "/", "rewrite": "/index.html" }
|
|
],
|
|
"functions": {
|
|
"functions/api": { "path": "/api/cloud/*" }
|
|
}
|
|
}
|