"use client"; import { useState } from "react"; import { useTranslations } from "next-intl"; /** * Shown when OmniRoute was started with auto-generated secrets (zero-config mode). * The banner is dismissable and persists only for the current session. */ export default function BootstrapBanner() { const t = useTranslations("common"); const [dismissed, setDismissed] = useState(false); if (dismissed) return null; // Determine default data dir hint based on platform hint from user-agent const dataDir = typeof navigator !== "undefined" && navigator.platform?.startsWith("Win") ? "%APPDATA%\\omniroute\\server.env" : "~/.omniroute/server.env"; return (
⚠️

Running in zero-config mode

OmniRoute auto-generated secure encryption keys on first launch. They are persisted to{" "} {dataDir} . No action is required — your data is encrypted and safe. To use custom keys, add{" "} JWT_SECRET {" "} and{" "} STORAGE_ENCRYPTION_KEY {" "} to that file.

); }