import { motion } from 'framer-motion'; import React, { Suspense, useState } from 'react'; import { classNames } from '~/utils/classNames'; import ConnectionDiagnostics from './ConnectionDiagnostics'; import { Button } from '~/components/ui/Button'; import VercelConnection from './VercelConnection'; // Use React.lazy for dynamic imports const GitHubConnection = React.lazy(() => import('./GithubConnection')); const NetlifyConnection = React.lazy(() => import('./NetlifyConnection')); // Loading fallback component const LoadingFallback = () => (
Manage your external service connections and integrations
{/* Diagnostics Tool - Conditionally rendered */} {showDiagnostics &&
You can configure connections using environment variables in your{' '}
.env.local
{' '}
file:
Token types:
repo, read:org, read:user
{' '}
scopes
When set, these variables will be used automatically without requiring manual connection.
If you're experiencing GitHub connection issues (500 errors) on Cloudflare Pages deployments, you need to configure environment variables in your Cloudflare dashboard:
GITHUB_ACCESS_TOKEN
{' '}
(server-side API calls)
VITE_GITHUB_ACCESS_TOKEN
{' '}
(client-side access)
VITE_GITHUB_TOKEN_TYPE
if
using fine-grained tokens
Troubleshooting Tip:
If you're having trouble with connections, try using the troubleshooting tool at the top of this page. It can help diagnose and fix common connection issues.
For persistent issues: