The GCS website requires only two optional environment variables for production CRM integration. When both are omitted, submitted leads are logged to the server console so no data is lost during local development or staging. The Sally AI assistant (Google Gemini via Vercel AI Gateway) is fully zero-config in Vercel and v0 environments — no API key or model credentials are needed.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/gcsconsultores/gcs-website/llms.txt
Use this file to discover all available pages before exploring further.
Variables reference
The full URL of your CRM’s create-contact endpoint. When this variable is unset, the
sendToCrm adapter in app/actions/lead-actions.ts skips the HTTP call and logs the lead payload to the server console instead. Set this to any REST endpoint that accepts a POST with a JSON body — HubSpot, Salesforce, Zoho, Pipedrive, or a custom webhook are all valid targets.Bearer token or API key for authenticating CRM requests. Passed verbatim in the
Authorization: Bearer <CRM_API_KEY> request header. Must be set alongside CRM_API_URL — if either variable is missing, the CRM call is skipped entirely.Sally AI — zero-config on Vercel
The/api/sally route uses the Vercel AI Gateway to proxy requests to Google Gemini. Inside Vercel and v0 environments the gateway handles Google authentication automatically — no GOOGLE_API_KEY or equivalent variable is required. The model identifier is set in app/api/sally/route.ts:
SALLY_MODEL in that file; no environment variable changes are needed.
Sample .env.local
Create this file at the project root for local development. Both variables are optional — omitting them causes leads to print to the terminal rather than reaching the CRM.
All environment variables in this project are server-side only — none are prefixed with
NEXT_PUBLIC_. This prevents credentials from being bundled into the client-side JavaScript and exposed in the browser.Local vs. production environments
| Environment | CRM_API_URL | CRM_API_KEY | Lead destination |
|---|---|---|---|
| Local development | Not set | Not set | Printed to terminal via console.log |
| Vercel preview | Optional | Optional | CRM if both set; otherwise console |
| Vercel production | Set | Set | CRM endpoint |
Adding environment variables in Vercel
Open your project in the Vercel dashboard
Go to vercel.com/dashboard and select the GCS website project.
Navigate to Settings → Environment Variables
Click the Settings tab in the top navigation, then select Environment Variables from the left sidebar.
Add CRM_API_URL
Click Add New. Enter
CRM_API_URL as the key and paste your CRM endpoint URL as the value. Select the target environments (Production, Preview, and/or Development) and click Save.Add CRM_API_KEY
Repeat the process for
CRM_API_KEY, pasting your bearer token or API key. Ensure you restrict this variable to Production unless you also want preview deploys forwarding leads to the CRM.