Skip to content

Fix site loading: broken CSS ref, wrong Gemini model, missing Pages config docs - #2

Merged
OrMosco merged 2 commits into
mainfrom
copilot/debug-site-loading-issue
Feb 27, 2026
Merged

OrMosco merged 2 commits into
mainfrom
copilot/debug-site-loading-issue

Conversation

Copilot AI commented Feb 27, 2026 •

Copy link
Copy Markdown
Contributor

The site failed to deploy because GitHub Pages was never enabled, and contained several code bugs that would cause runtime failures once deployed.

Root Cause

The GitHub Actions deploy job exited with HTTP 404 — actions/deploy-pages requires Settings → Pages → Source → GitHub Actions to be enabled first. Added setup instructions to README.

Code Fixes

  • index.html: Removed <link rel="stylesheet" href="/index.css"> — file doesn't exist, causing a Vite build warning and a 404 at runtime
  • geminiService.ts: Replaced non-existent model gemini-3-flash-preview with gemini-2.0-flash; removed the unsupported thinkingConfig block; dropped unused Type import
  • geminiService.ts: Aligned env var reference from process.env.API_KEY → process.env.GEMINI_API_KEY to match Vite config and .env.local convention
// Before
import { GoogleGenAI, Type } from "@google/genai";
const ai = new GoogleGenAI({ apiKey: process.env.API_KEY });
// model: 'gemini-3-flash-preview', thinkingConfig: { thinkingBudget: 0 }

// After
import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
// model: 'gemini-2.0-flash'

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@OrMosco
OrMosco marked this pull request as ready for review February 27, 2026 14:04
@OrMosco
OrMosco merged commit 49a8517 into main Feb 27, 2026
Copilot AI changed the title [WIP] Fix site loading issue Fix site loading: broken CSS ref, wrong Gemini model, missing Pages config docs Feb 27, 2026
Copilot stopped work on behalf of OrMosco due to an error February 27, 2026 14:05
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