Connect GitHub and Vercel
Step-by-step setup to connect your GitHub repositories, configure Vercel deployments, synchronize secrets, and automate your build-to-ship pipeline.
Tekspaz connects directly to your developer tools so code created by agents lands in your Git repositories and deploys automatically to your cloud hosting.
Connecting GitHub and Vercel enables automated branch management, pull request creation, preview deployments, and seamless production shipping.
1. Connecting GitHub
Connecting GitHub gives Tekspaz permission to create working branches, push verified commits, and open pull requests in your repositories.
Installation Steps
- Sign in to Tekspaz and open Settings › Connections (
/settings). - Locate the GitHub card and click Connect GitHub.
- You will be redirected to GitHub to authorize the Tekspaz GitHub App:
- Personal Account or Organization: Choose which account or GitHub Organization to install the app onto.
- Repository Access:
- All repositories: Recommended if your team builds multiple new projects through Tekspaz.
- Only select repositories: Select specific repositories you wish to grant access to.
- Click Install & Authorize.
- GitHub will redirect you back to Tekspaz Settings with a confirmation notice:
Connected to GitHub as @your-handle.
sequenceDiagram
autonumber
actor Admin as Workspace Admin
participant Teks as Tekspaz Platform
participant GH as GitHub API
Admin->>Teks: Click "Connect GitHub"
Teks->>GH: Redirect to GitHub App Installation
Admin->>GH: Select Repositories & Grant Permissions
GH->>Teks: OAuth Callback with Installation ID
Teks->>Teks: Store Encrypted Installation Token
Teks-->>Admin: Show "Connected as @handle"
Required Permissions
The Tekspaz GitHub App requests minimum necessary permissions:
- Repository contents: Read & write (to create branches and push agent-written code).
- Pull requests: Read & write (to open and update pull requests for human review).
- Workflows: Read & write (to trigger and inspect GitHub Actions runs).
- Metadata: Read-only (mandatory GitHub requirement).
2. Connecting Vercel
Connecting Vercel enables TeksBuild to provision preview environments and trigger production releases without manual export.
Configuration Steps
- In Tekspaz, go to Settings › Connections (
/settings). - In the Vercel section, you will need two credentials:
- Vercel Access Token:
- Navigate to vercel.com/account/tokens.
- Click Create Token.
- Set Scope to your team or account and give it an expiration policy.
- Copy the generated token (
Bearer ...).
- Vercel Team ID (Optional for personal accounts):
- Found in your Vercel Team Settings under General › Team ID (e.g.
team_abc123).
- Found in your Vercel Team Settings under General › Team ID (e.g.
- Vercel Access Token:
- Paste your token and Team ID into the Tekspaz Vercel connection form.
- Click Save & Verify Connection.
- Tekspaz will verify connectivity against Vercel’s API (
/v2/useror/v2/teams) and display a green checkmark.
3. Synchronizing Environment Variables & Secrets
Real applications require secrets such as database URLs, payment keys, or third-party client IDs. Tekspaz provides end-to-end encrypted secret synchronization:
- In your project dashboard, navigate to Settings › Environment Variables.
- Click Add Variable:
- Key: e.g.
DATABASE_URL - Value:
postgresql://user:pass@host.db.example.com:5432/main - Target: Check Preview, Development, and/or Production.
- Key: e.g.
- All secrets are encrypted at rest using
libsodiumseal encryption before storage. - When TeksBuild triggers a Vercel deployment, it automatically mirrors these environment variables to your linked Vercel project via Vercel’s Project Secrets API.
4. End-to-End Pipeline Verification
To verify that your connections are healthy:
- Open an existing project or create a quick test project.
- In the project conversation, submit a small change (e.g. “Update footer copyright year to 2026”).
- Approve the resulting Plan Bundle.
- In the Review screen:
- Observe that a new Git branch is created on GitHub:
tekspaz/feature-.... - Observe the live Vercel Preview URL generated directly on the build card.
- Observe that a new Git branch is created on GitHub:
- Click Approve Code and Deploy to Vercel.
- Check your GitHub repository to confirm the pull request is merged, and check Vercel to confirm the production build is live!
5. Troubleshooting Integrations
Issue: GitHub Token Expired or Revoked
- Symptoms:
401 Unauthorized: Bad credentialswhen pushing code to GitHub. - Resolution: Go to Settings › Connections, click Disconnect GitHub, then click Connect GitHub to re-authorize the app.
Issue: Repository Not Visible in Project Dropdown
- Symptoms: Your newly created GitHub repository does not appear in Tekspaz.
- Resolution: Open your GitHub Installed Applications settings, click Tekspaz App, and ensure the new repository is checked under Repository access.
Issue: Vercel Deploy Hook Timeout
- Symptoms:
Deployment failed: Vercel API timed out waiting for build completion. - Resolution: Verify in your Vercel Dashboard that your project does not exceed maximum function duration limits. Ensure
astro.config.mjssetsadapter: vercel({ maxDuration: 300 }).
What to explore next
Ask the DocsAI Assistant
Instant answers grounded in our guides with direct links to sources.
We couldn't find an exact answer in the guides for this query. You can try searching full documentation text:
Have questions about this guide?
Our founding engineering team is ready to help you get started.
