diff --git a/packages/cli/src/commands/database/seed/index.ts b/packages/cli/src/commands/database/seed/index.ts index 7b2555654..bb9dfad23 100644 --- a/packages/cli/src/commands/database/seed/index.ts +++ b/packages/cli/src/commands/database/seed/index.ts @@ -25,7 +25,7 @@ export const seedByPool = async (pool: DatabasePool, cloud = false) => { text: 'Create tables', prefixText: chalk.blue('[info]'), }); - await seedTables(connection, latestTimestamp); + await seedTables(connection, latestTimestamp, cloud); if (cloud) { await seedCloud(connection); diff --git a/packages/cli/src/commands/database/seed/tables.ts b/packages/cli/src/commands/database/seed/tables.ts index bec750a46..a65962105 100644 --- a/packages/cli/src/commands/database/seed/tables.ts +++ b/packages/cli/src/commands/database/seed/tables.ts @@ -117,7 +117,8 @@ export const createTables = async (connection: DatabaseTransactionConnection) => export const seedTables = async ( connection: DatabaseTransactionConnection, - latestTimestamp: number + latestTimestamp: number, + isCloud: boolean ) => { await createTenant(connection, defaultTenantId); await seedOidcConfigs(connection, defaultTenantId); @@ -164,7 +165,7 @@ export const seedTables = async ( await Promise.all([ connection.query(insertInto(createDefaultAdminConsoleConfig(defaultTenantId), 'logto_configs')), connection.query( - insertInto(createDefaultSignInExperience(defaultTenantId), 'sign_in_experiences') + insertInto(createDefaultSignInExperience(defaultTenantId, isCloud), 'sign_in_experiences') ), connection.query(insertInto(createDefaultAdminConsoleConfig(adminTenantId), 'logto_configs')), connection.query(insertInto(createAdminTenantSignInExperience(), 'sign_in_experiences')), diff --git a/packages/cloud/src/libraries/tenants.ts b/packages/cloud/src/libraries/tenants.ts index 07d0bdd55..0c57e835b 100644 --- a/packages/cloud/src/libraries/tenants.ts +++ b/packages/cloud/src/libraries/tenants.ts @@ -113,7 +113,7 @@ export class TenantsLibrary { ), transaction.query(insertInto(createDefaultAdminConsoleConfig(tenantId), LogtoConfigs.table)), transaction.query( - insertInto(createDefaultSignInExperience(tenantId), SignInExperiences.table) + insertInto(createDefaultSignInExperience(tenantId, true), SignInExperiences.table) ), ]); diff --git a/packages/console/src/onboarding/components/Broadcast/index.tsx b/packages/console/src/onboarding/components/Broadcast/index.tsx index 38bfda82e..f0c387cd7 100644 --- a/packages/console/src/onboarding/components/Broadcast/index.tsx +++ b/packages/console/src/onboarding/components/Broadcast/index.tsx @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next'; import TextLink from '@/components/TextLink'; -import { logtoBlogLink } from '@/onboarding/constants'; +import { aboutCloudPreviewLink } from '@/onboarding/constants'; import * as styles from './index.module.scss'; @@ -11,7 +11,7 @@ const Broadcast = () => { return (