Add PUBLIC_SEARCH config option

This commit is contained in:
dtonon 2026-06-09 20:00:44 +01:00
parent ea478c1e4b
commit 5887a5705e
3 changed files with 4 additions and 0 deletions

View file

@ -19,6 +19,8 @@ if (MODE === "simple" && !GROUP_ID) {
throw new Error("PUBLIC_GROUP_ID is required in simple mode");
}
export const JOINCODE_REQUIRED = env.PUBLIC_JOINCODE === "yes";
// Requires a relay with NIP-50 support.
export const SEARCH_ENABLED = env.PUBLIC_SEARCH === "yes";
export const LABELS = (env.PUBLIC_LABELS ?? "")
.split(",")
.map((l) => l.trim())