Update nsite deployment

Add support for named sites under users key
This commit is contained in:
hzrd149 committed 2026-03-24 17:03:39 -05:00
1 parent c5ed881af0
commit d51fee34e3
11 files changed
+1200 -262

No files matched your search

+9 -1
View File
@@ -15,7 +15,15 @@ const nsiteProjectConfigSchema = z.object({
type: z.literal('nsite'),
url: z.string(),
data: z.object({
nsec: z.string(),
/** Kept optional — only present on configs created before the signer migration */
/** Kept optional — only present on configs created before the signer migration */
nsec: z.string().optional(),
siteTitle: z.string().optional(),
siteDescription: z.string().optional(),
/** Named-site dTag identifier (kind 35128). Absent → root site (kind 15128). */
dTag: z.string().optional(),
/** 'named' | 'root'. Absent on legacy configs — treated as 'named' by the form. */
siteType: z.enum(['named', 'root']).optional(),
}),
});