Remove root site option from nsite deploy form, always use named sites

This commit is contained in:
Alex Gleason committed 2026-04-02 02:55:12 -05:00
1 parent d4d6ff0d89
commit 85afb6828e
4 files changed
+14 -124

No files matched your search

+3 -9
View File
@@ -98,18 +98,12 @@ export async function buildAppEvent(
}
}
// If an nsite deployment exists, add an "a" tag referencing the site manifest event
// If an nsite deployment exists, add an "a" tag referencing the kind 35128 site manifest event
if (opts?.fs && opts.cwd && opts.pubkey) {
try {
const nsiteConfig = await readNsiteVfsConfig(opts.fs, opts.cwd);
if (nsiteConfig) {
if (nsiteConfig.id) {
// Named site: kind 35128 addressable event
tags.push(['a', `35128:${opts.pubkey}:${nsiteConfig.id}`]);
} else {
// Root site: kind 15128 replaceable event
tags.push(['a', `15128:${opts.pubkey}:`]);
}
if (nsiteConfig?.id) {
tags.push(['a', `35128:${opts.pubkey}:${nsiteConfig.id}`]);
}
} catch {
// No nsite config found, skip