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 WORKDIR /app
COPY package*.json ./ COPY package*.json ./
COPY vendor/page-agent ./vendor/page-agent
RUN npm ci RUN npm ci
COPY . . COPY . .
+2 -2
View File
@@ -17,7 +17,7 @@ function createPageAgent() {
${adminGuide}` ${adminGuide}`
}, },
customFetch: (input, init) => { customFetch: (input: RequestInfo | URL, init?: RequestInit) => {
const token = localStorage.getItem('studio-admin-token'); const token = localStorage.getItem('studio-admin-token');
return fetch(input, { return fetch(input, {
...init, ...init,
@@ -27,7 +27,7 @@ ${adminGuide}`
} }
}); });
} }
}); });
} }
let pageAgent = createPageAgent(); let pageAgent = createPageAgent();