Skip to content

Unblock Vercel preview/build by deferring font and Supabase initialization#2

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-vercel-deployment-and-preview-issues
Draft

Unblock Vercel preview/build by deferring font and Supabase initialization#2
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-vercel-deployment-and-preview-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 1, 2026

Vercel preview and deployment failed due to build-time font fetching and Supabase client initialization without required env vars. This change removes those build-time dependencies so CI can complete and the preview can render.

  • Font loading
    • Move Host Grotesk to runtime <link> tags with preconnects to avoid build-time fetches.
  • Supabase client
    • Lazily create the client only when env vars exist; return 503 when missing instead of crashing builds.
const supabase = getSupabaseClientOrNull();
if (!supabase) {
  return NextResponse.json(
    { error: "Service unavailable. Missing server configuration." },
    { status: 503 }
  );
}

Copilot AI and others added 2 commits May 1, 2026 06:07
@vercel
Copy link
Copy Markdown

vercel Bot commented May 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
plarix-website Error Error May 1, 2026 6:12am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants