fix: add missing disableSignUp to auth config objects in CLI
All auth config literals in the CLI were missing the required disableSignUp field after it was added to authConfigSchema. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f2a0a0b804
commit
38cb2bf3c4
4 changed files with 6 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ function writeBaseConfig(configPath: string) {
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
baseUrlMode: "auto",
|
baseUrlMode: "auto",
|
||||||
|
disableSignUp: false,
|
||||||
},
|
},
|
||||||
storage: {
|
storage: {
|
||||||
provider: "local_disk",
|
provider: "local_disk",
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ function defaultConfig(): PaperclipConfig {
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
baseUrlMode: "auto",
|
baseUrlMode: "auto",
|
||||||
|
disableSignUp: false,
|
||||||
},
|
},
|
||||||
storage: defaultStorageConfig(),
|
storage: defaultStorageConfig(),
|
||||||
secrets: defaultSecretsConfig(),
|
secrets: defaultSecretsConfig(),
|
||||||
|
|
|
||||||
|
|
@ -185,6 +185,7 @@ function quickstartDefaultsFromEnv(): {
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
baseUrlMode: authBaseUrlMode,
|
baseUrlMode: authBaseUrlMode,
|
||||||
|
disableSignUp: false,
|
||||||
...(authPublicBaseUrl ? { publicBaseUrl: authPublicBaseUrl } : {}),
|
...(authPublicBaseUrl ? { publicBaseUrl: authPublicBaseUrl } : {}),
|
||||||
},
|
},
|
||||||
storage: {
|
storage: {
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ export async function promptServer(opts?: {
|
||||||
}
|
}
|
||||||
|
|
||||||
const port = Number(portStr) || 3100;
|
const port = Number(portStr) || 3100;
|
||||||
let auth: AuthConfig = { baseUrlMode: "auto" };
|
let auth: AuthConfig = { baseUrlMode: "auto", disableSignUp: false };
|
||||||
if (deploymentMode === "authenticated" && exposure === "public") {
|
if (deploymentMode === "authenticated" && exposure === "public") {
|
||||||
const urlInput = await p.text({
|
const urlInput = await p.text({
|
||||||
message: "Public base URL",
|
message: "Public base URL",
|
||||||
|
|
@ -139,11 +139,13 @@ export async function promptServer(opts?: {
|
||||||
}
|
}
|
||||||
auth = {
|
auth = {
|
||||||
baseUrlMode: "explicit",
|
baseUrlMode: "explicit",
|
||||||
|
disableSignUp: false,
|
||||||
publicBaseUrl: urlInput.trim().replace(/\/+$/, ""),
|
publicBaseUrl: urlInput.trim().replace(/\/+$/, ""),
|
||||||
};
|
};
|
||||||
} else if (currentAuth?.baseUrlMode === "explicit" && currentAuth.publicBaseUrl) {
|
} else if (currentAuth?.baseUrlMode === "explicit" && currentAuth.publicBaseUrl) {
|
||||||
auth = {
|
auth = {
|
||||||
baseUrlMode: "explicit",
|
baseUrlMode: "explicit",
|
||||||
|
disableSignUp: false,
|
||||||
publicBaseUrl: currentAuth.publicBaseUrl,
|
publicBaseUrl: currentAuth.publicBaseUrl,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue