fix docker build for vendored page agent
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2026-07-07 15:51:51 +09:00
parent c2741ab9f9
commit 5a73197062
2 changed files with 19 additions and 18 deletions
+1
View File
@@ -2,6 +2,7 @@ FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
COPY vendor/page-agent ./vendor/page-agent
RUN npm ci
COPY . .
+18 -18
View File
@@ -4,30 +4,30 @@ import { apiBaseUrl } from './api';
function createPageAgent() {
return new PageAgent({
model: 'gpt-4.1-mini',
baseURL: `${apiBaseUrl}/page-agent/llm`,
apiKey: '',
language: 'en-US',
instructions: {
system: `항상 한국어로 답변하고, 이 어드민 콘솔의 운영 흐름에 맞춰 간결하게 안내하세요.
model: 'gpt-4.1-mini',
baseURL: `${apiBaseUrl}/page-agent/llm`,
apiKey: '',
language: 'en-US',
instructions: {
system: `항상 한국어로 답변하고, 이 어드민 콘솔의 운영 흐름에 맞춰 간결하게 안내하세요.
사용자가 별도로 허용하지 않는 한 플랫폼 그룹 하위 메뉴에서만 이동하고 작업하세요.
삭제, 제거, 폐기, 정리, unlink, revoke, delete, remove, decommission 등 데이터를 없애거나 연결을 끊는 작업은 절대 실행하지 말고 사람이 직접 해야 한다고 안내하세요.
아래 문서를 이 어드민 콘솔의 업무 가이드로 사용하세요.
${adminGuide}`
},
customFetch: (input, init) => {
const token = localStorage.getItem('studio-admin-token');
return fetch(input, {
...init,
headers: {
...(init?.headers ?? {}),
...(token ? { Authorization: `Bearer ${token}` } : {})
}
});
}
});
},
customFetch: (input: RequestInfo | URL, init?: RequestInit) => {
const token = localStorage.getItem('studio-admin-token');
return fetch(input, {
...init,
headers: {
...(init?.headers ?? {}),
...(token ? { Authorization: `Bearer ${token}` } : {})
}
});
}
});
}
let pageAgent = createPageAgent();