GOOGLE_CLOUD_SERVICE_URL
The base URL of the deployed quasar service on Google Cloud Run.Format
What it controls
All four API endpoints in the playground use this variable to forward requests to the quasar gRPC-transcoded service. Internally, each endpoint constructs a request to:<Method> is one of Simulate, Share, Edit, or Validate.
What happens if it is not set
IfGOOGLE_CLOUD_SERVICE_URL is missing, every API call returns an HTTP 500 response with the following body:
How to set it in Vercel
1
Deploy quasar to Google Cloud Run
Follow the quasar deployment instructions to deploy the simulator service. Copy the service URL from the Cloud Run console once deployment completes.
2
Open your Vercel project settings
In the Vercel dashboard, navigate to your
qasm-playground project and click Settings, then Environment Variables.3
Add the variable
Set the variable name to
GOOGLE_CLOUD_SERVICE_URL and paste the Cloud Run service URL as the value. Apply it to the Production environment (and optionally Preview).4
Redeploy
Trigger a new deployment so Vercel picks up the new variable. The playground will use it immediately after the deployment completes.