Files
treg/scripts/frontend-e2e-server.sh
T
SToneX b279e6fb51 chore(web): remove the legacy dashboard and its rollout switch
Every visitor has been on the compiled Dashboard since the 100% rollout, so
the frozen legacy snapshot, its asset route, the per-account selection and
the three TREG_DASHBOARD_ROLLOUT_* settings go. Catalog pages and shared
links no longer look up the session to pick a frontend, /search is always
served, and the app-version stamp is the bundle hash alone. Rollback is now
a deploy of the previous build.
2026-09-25 21:26:40 +08:00

21 lines
800 B
Bash

#!/usr/bin/env bash
# A disposable local database, with no dotenv file or external provider configuration.
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/treg-browser.XXXXXX")"
trap 'rm -rf "$TEST_DIR"' EXIT
cd "$TEST_DIR"
export TREG_DATABASE_URL="sqlite+aiosqlite:///$TEST_DIR/test.db"
export TREG_PUBLIC_URL=http://127.0.0.1:18791
export TREG_EMAIL_DEV_MODE=true
export TREG_FRONTEND_DEV=false
export TREG_PROMO_GRANT_MICRO=0
export TREG_RESEND_API_KEY=
export TREG_POSTHOG_KEY=
export TREG_INTERCOM_APP_ID=
export TREG_PLATFORM_PROVIDERS=
export PORT=18791
export TREG_SECRET_KEY="$(uv run --project "$ROOT" python -m treg keygen)"
export TREG_SESSION_SECRET=local-disposable-browser-tests
uv run --project "$ROOT" python -m treg