This repository has been archived on 2026-06-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
master-ai/vibn-frontend/scripts/start-with-alloydb.sh

19 lines
423 B
Bash
Executable File

#!/bin/bash
# Start dev server with fresh AlloyDB access token
echo "🔑 Generating AlloyDB access token..."
export ALLOYDB_PASSWORD=$(gcloud auth print-access-token)
if [ -z "$ALLOYDB_PASSWORD" ]; then
echo "❌ Failed to generate access token"
echo "Make sure you're logged in: gcloud auth login"
exit 1
fi
echo "✅ Token generated (expires in 1 hour)"
echo "🚀 Starting dev server..."
echo ""
npm run dev