CLI tool for deploying Sapper exported applications on Arweave
This is a CLI tool for deploying Svelte applications written in Sapper on Arweave
This project needs help. It does work, but it probably needs some adjustments to work with any Sapper app. It is only tested with useverto/verto.
yarn add global @verto/deploy
or
npm i -g @verto/deploy
- Before deploying, make sure that you run
sapper export --entry "your routes with spaces between them"
- Make sure you are deploying the
__sapper__/export
directory. It won't work with anything else.
vdeploy help
Shows the help menu
vdeploy deploy --dir <Sapper project directory to deploy> --keyfile <path toArweave keyfile>
This deploys your Sapper project. What it does:
- Fixes links and hrefs (so it works with the arweave transaction id subfolder)
- Deploys all your files
- Creates a path manifest that links all files together and adds routes
vdeploy balance --keyfile <path toArweave keyfile>
Helper command: returns your arweave balance
vdeploy status <id>
Helper command: returns the status of the given transaction ID
The arweave-deploy CLI does not work with Sapper applications. The routes are invalid and the links/hrefs also don't work. verto-deploy was built specifically for deploying Sapper apps.