trystash.xyz, and administrative credentials held outside Git.
1
Store the protected database connection
Create separate migration and restricted runtime SQL principals. Store the runtime connection URL in AWS Secrets Manager and record only its secret ARN in deployment parameters.
2
Apply database migrations
Export the administrative Confirm all files in
DATABASE_URL and COCKROACH_SQL_CLUSTER_ID, then run:db/migrations/ apply and the vector index job reaches a ready state before serving production retrieval.3
Validate and build AWS infrastructure
4
Deploy the AWS stack
5
Configure the Vercel gateway
Set
STASH_API_BASE_URL, STASH_BOOTSTRAP_KEY, STASH_SESSION_SECRET, and STASH_TRUSTED_SOURCE_KEYS as server-only production variables. Set NEXT_PUBLIC_APP_URL=https://trystash.xyz as the sole browser-visible runtime setting.6
Generate and audit production evidence