Deployment
Repeatable deployment runbook for contracts, frontend, and docs with validation checkpoints at each stage.
Preflight
- Confirm target network:
testnetormainnet. - Verify deployer wallet has enough STX for contract fees.
- Run all local tests in contracts and SDK before deploy.
- Prepare updated env vars for frontend and demo app.
Contracts
cd flowvault-contracts clarinet deployments generate --testnet --medium-cost clarinet deployments apply --testnet
After deployment, store resulting principal identifiers in your release notes. These identifiers are runtime dependencies for every client build.
Frontend
cd flowvault-frontend npm install npm run build
Ensure these are set in deployment environment:NEXT_PUBLIC_FLOWVAULT_CONTRACT_ADDRESS,NEXT_PUBLIC_FLOWVAULT_CONTRACT_NAME,NEXT_PUBLIC_FLOWVAULT_TOKEN_CONTRACT_ADDRESS, andNEXT_PUBLIC_FLOWVAULT_TOKEN_CONTRACT_NAME.
Docs Host (docs.flow-vault.dev)
cd flowvault-docs npm install npm run build
Deploy the built app to your host and map docs.flow-vault.dev as a custom domain.
Verification
- Open frontend and connect wallet.
- Call read methods and confirm no network or parsing errors.
- Create a small deposit and inspect tx result in explorer.
- Check docs routes for all pages and active sidebar state.
- Record release version, commit hash, and deployed contract principal.