#!/usr/bin/env bash # Builds the app and runs the server on port 3101 with a fresh, empty data folder (so tests never touch real studies). set -euo pipefail cd "$(dirname "$0")/.." export DATA_DIR="$(mktemp -d)" export PORT=3101 export NODE_ENV=production npx vite build --logLevel error exec node server/index.js