From 59e746a8a80f4c8b382769919eb9c325695bcd34 Mon Sep 17 00:00:00 2001 From: RaymondVerhoef Date: Thu, 14 May 2026 13:09:22 +0200 Subject: [PATCH] feat: add anthropic API proxy route to Caddyfile and revert to npm install in Dockerfile --- Caddyfile | 7 +++++++ Dockerfile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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 . .