-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow: * Import files from github. Binary/image files are saved in the container, but not displayed in the folder * Deploy backend to generate JS binding, environment variable, `canister_id.json` and `.env` files needed for frontend build * If the folder contains `package.json`, a selection of non-".mo" file will enable frontend build * Frontend build copies everything from state.files into the container, and run `npm install`, `npm run build` * Deploy asset canister. Authorize a random identity and copy the identity to the container * Inside the container, run `node upploadAsset.js <asset_canister> <dist_dir>` Known limitations: * Update the asset doesn't refresh the TTL. What's a good API without being abused? * Cannot talk to local replica inside the web container. But it seems to be a problem on the replica side...There are two workarounds: 1) copy the build artifact from container and upload in the main browser code; 2) talk to the mainnet inside container * Only fully supported in Chrome. Firefox may have CORS problem running `npm install` in jsh. Normal deployment is fine. Safari support is only in TP.
- Loading branch information
1 parent
0d0aaf3
commit 5b6fecb
Showing
54 changed files
with
2,538 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"match": "**/*", | ||
"headers": { | ||
"Cross-Origin-Embedder-Policy": "credentialless", | ||
"Cross-Origin-Opener-Policy": "same-origin", | ||
"Content-Security-Policy": "frame-src *; frame-ancestors 'self'" | ||
} | ||
}, | ||
{ | ||
"match": ".well-known", | ||
"ignore": false | ||
} | ||
] |
Binary file not shown.
Oops, something went wrong.