feat: Update dependencies and import maps

Upgrades React to v19.2.4 and adjusts ESM import maps to ensure correct versioning and loading. Also, removes redundant API key check in geminiService.ts as it's handled at build time.
This commit is contained in:
Philip
2026-01-28 17:45:32 -08:00
parent 7cdd75ea83
commit c8ef03a27b
3 changed files with 8 additions and 12 deletions
+1 -6
View File
@@ -2,11 +2,6 @@ import { GoogleGenAI, Type } from "@google/genai";
import { Question } from "../types";
const generateQuestions = async (topic: string, count: number = 5): Promise<Question[]> => {
if (!process.env.API_KEY) {
console.error("API Key is missing");
return [];
}
const ai = new GoogleGenAI({ apiKey: process.env.API_KEY });
try {
@@ -49,4 +44,4 @@ const generateQuestions = async (topic: string, count: number = 5): Promise<Ques
}
};
export { generateQuestions };
export { generateQuestions };