WebApps Deployment (permaweb-deploy)
How to use Arweave's permaweb-deploy with preview temporary deployments
We have forked the original permaweb-deploy CLI to add support for Load S3 as an alternative upload option (through loaded-turbo-api) beside the default Turbo-Arweave permanent uploads.
Preview Feature in Details
the loadnetwork's permaweb-deploy forked CLI have the --preview feature flag, where if used, the web app (UI) is deployed on Load S3 as xANS-104 dataitem instead of having the permanent-only deployment option.
This feature unlocks missing features in permaweb deployment workflow: staging deployments. With this feature, you can deploy as you work with Vercel (dev UX), stage deployment as preview, promote to prod only when it is ok to commit the webapp ui permanently on Arweave.
Dev Guide
First, clone the repository locally: https://github.com/loadnetwork/permaweb-deploy
setup
pnpm install
pnpm build
pnpm link --globaldeploy
from your ui folder:
permaweb-deploy deploy --preview --deploy-folder ./dist --wallet ./wallet.jsonif you want to avoid linking, run it directly from the repo:
Example response:
Additionally you can access the Arweave Manifest JSON's raw payload using the /resolve/{dataitem_id} endpoint; example: https://gateway.s3-node-1.load.network/resolve/Uk-b10wtSSVShM3dg64XzaP9TOusnMsHirpWemb8b98
Last updated