Compare commits

...

2 Commits

Author SHA1 Message Date
Jeff Emmett 49cd1928dc feat: update Docker config for VITE_WORKER_ENV support
- Dockerfile now uses VITE_WORKER_ENV instead of hardcoded worker URL
- docker-compose.yml uses VITE_WORKER_ENV=production
- docker-compose.dev.yml uses VITE_WORKER_ENV=staging (points to dev worker)
- Staging site will use jeffemmett-canvas-dev.jeffemmett.workers.dev

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 22:48:27 -05:00
Jeff Emmett 5504bbd737 fix: correct dev worker URL after deployment
- jeffemmett-canvas-dev.jeffemmett.workers.dev is the actual deployed URL

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 22:45:19 -05:00
4 changed files with 7 additions and 6 deletions

View File

@ -14,7 +14,7 @@ RUN npm ci --legacy-peer-deps
COPY . .
# Build args for environment
ARG VITE_TLDRAW_WORKER_URL=https://jeffemmett-canvas.jeffemmett.workers.dev
ARG VITE_WORKER_ENV=production
ARG VITE_DAILY_API_KEY
ARG VITE_RUNPOD_API_KEY
ARG VITE_RUNPOD_IMAGE_ENDPOINT_ID
@ -23,7 +23,8 @@ ARG VITE_RUNPOD_TEXT_ENDPOINT_ID
ARG VITE_RUNPOD_WHISPER_ENDPOINT_ID
# Set environment for build
ENV VITE_TLDRAW_WORKER_URL=$VITE_TLDRAW_WORKER_URL
# VITE_WORKER_ENV: 'production' | 'staging' | 'dev' | 'local'
ENV VITE_WORKER_ENV=$VITE_WORKER_ENV
ENV VITE_DAILY_API_KEY=$VITE_DAILY_API_KEY
ENV VITE_RUNPOD_API_KEY=$VITE_RUNPOD_API_KEY
ENV VITE_RUNPOD_IMAGE_ENDPOINT_ID=$VITE_RUNPOD_IMAGE_ENDPOINT_ID

View File

@ -8,7 +8,7 @@ services:
context: .
dockerfile: Dockerfile
args:
- VITE_TLDRAW_WORKER_URL=https://jeffemmett-canvas.jeffemmett.workers.dev
- VITE_WORKER_ENV=staging
container_name: canvas-dev
restart: unless-stopped
labels:

View File

@ -8,7 +8,7 @@ services:
context: .
dockerfile: Dockerfile
args:
- VITE_TLDRAW_WORKER_URL=https://jeffemmett-canvas.jeffemmett.workers.dev
- VITE_WORKER_ENV=production
# Add other build args from .env if needed
container_name: canvas-website
restart: unless-stopped

View File

@ -11,8 +11,8 @@ const WORKER_ENV = import.meta.env.VITE_WORKER_ENV || 'production' // Default to
const WORKER_URLS = {
local: `http://${window.location.hostname}:5172`,
dev: "https://jeffemmett-canvas-automerge-dev.jeffemmett.workers.dev",
staging: "https://jeffemmett-canvas-automerge-dev.jeffemmett.workers.dev",
dev: "https://jeffemmett-canvas-dev.jeffemmett.workers.dev",
staging: "https://jeffemmett-canvas-dev.jeffemmett.workers.dev",
production: "https://jeffemmett-canvas.jeffemmett.workers.dev"
}