# roadsketch — draw a squiggle, find real US roads shaped like it.
# Fullstack: static frontend (web/, no build step) served by Caddy at
# roads.cee.wtf, /api/* proxied to the FastAPI+FAISS backend on the Pi.
# NOTE: the 3.1GB index is out-of-band — see DEPLOY.md and deploy/docker-compose.yml.
TYPE=fullstack
DOMAIN=roads.cee.wtf
BACKEND_PORT=8925
# Stage web/ into dist/ and stamp ?v=<content-hash> onto the css/js refs so
# every deploy busts browser caches (no Cache-Control on Caddy's file_server;
# a stale style.css against fresh main.js broke the canvas sizing once).
FRONTEND_DIR=dist
BUILD_CMD="rm -rf dist && mkdir -p dist && cp web/index.html web/main.js web/style.css dist/ && python3 ../../tools/cache-bust.py dist"
