..
This commit is contained in:
@@ -8,6 +8,8 @@ RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt
|
|||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN rm -f package-lock.json && npm install
|
RUN rm -f package-lock.json && npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
|
ARG VITE_GEMINI_API_KEY
|
||||||
|
ENV VITE_GEMINI_API_KEY=$VITE_GEMINI_API_KEY
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# 2단계: 실행 (Node.js - Debian Slim)
|
# 2단계: 실행 (Node.js - Debian Slim)
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
|
|
||||||
import { GoogleGenAI, Type } from "@google/genai";
|
import { GoogleGenAI, Type } from "@google/genai";
|
||||||
|
|
||||||
const ai = new GoogleGenAI({ apiKey: process.env.API_KEY });
|
const apiKey = import.meta.env.VITE_GEMINI_API_KEY || process.env.GEMINI_API_KEY || process.env.API_KEY || '';
|
||||||
|
if (!apiKey) console.error("API Key is missing!");
|
||||||
|
const ai = new GoogleGenAI({ apiKey });
|
||||||
|
|
||||||
export interface DetailedSearchResult {
|
export interface DetailedSearchResult {
|
||||||
title: string;
|
title: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user