diff --git a/Caddyfile b/Caddyfile index 88cf796..0a1d66a 100644 --- a/Caddyfile +++ b/Caddyfile @@ -23,6 +23,13 @@ } header @html Cache-Control "public, max-age=0, must-revalidate" + handle /api/anthropic/* { + uri strip_prefix /api/anthropic + reverse_proxy https://api.anthropic.com { + header_up Host api.anthropic.com + } + } + try_files {path} /index.html handle_errors { diff --git a/Dockerfile b/Dockerfile index 3d50513..3cf4d33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM node:24-alpine AS builder WORKDIR /app COPY package.json package-lock.json ./ -RUN npm ci +RUN npm install COPY . .