#!/bin/sh # Production build. The frontend is rebuilt without PUBLIC_HOT_RELOAD first: # dev.sh's builds set it, and whatever is in frontend/dist at compile time is # what gets embedded, reload script and all. set -e cd "$(dirname "$0")" (cd frontend && bun install --frozen-lockfile && bun run build) cd backend cargo build --release --no-default-features echo "built backend/target/release/astrum"