Route auth publish URLs through facade

This commit is contained in:
john
2026-07-02 21:10:38 +08:00
parent 22b6220fcc
commit 0a0c619aca
+2 -2
View File
@@ -25,10 +25,10 @@ import {
resolvePolicies,
} from './policies.mjs';
import {
buildPublicUrl,
ensurePublishSkillInstalled,
ensureUserPublishLayout,
ensureWorkspaceHintsInstalled,
PUBLISH_ROOT_DIR,
PUBLISH_SKILL_NAME,
resolvePublicBaseUrl,
resolveLegacyPublishDir,
@@ -228,7 +228,7 @@ export function createUserAuth(pool, options = {}) {
return {
...base,
publishSlug: publishKey,
publishUrl: `${publicBaseUrl}/${PUBLISH_ROOT_DIR}/${encodeURIComponent(publishKey)}/`,
publishUrl: buildPublicUrl(publicBaseUrl, publishKey),
publishSkillName: PUBLISH_SKILL_NAME,
};
};