diff --git a/packages/frontend/core/src/modules/cloud/constant.ts b/packages/frontend/core/src/modules/cloud/constant.ts index 89efeb085..3a803e5ac 100644 --- a/packages/frontend/core/src/modules/cloud/constant.ts +++ b/packages/frontend/core/src/modules/cloud/constant.ts @@ -39,12 +39,16 @@ export const BUILD_IN_SERVERS: (ServerMetadata & { config: ServerConfig })[] = config: { serverName: 'Affine Cloud', features: [ - ServerFeature.Captcha, + ServerFeature.Indexer, ServerFeature.Copilot, + ServerFeature.CopilotEmbedding, ServerFeature.OAuth, ServerFeature.Payment, ], - oauthProviders: [OAuthProviderType.Google], + oauthProviders: [ + OAuthProviderType.Google, + OAuthProviderType.Apple, + ], type: ServerDeploymentType.Affine, credentialsRequirement: { password: { @@ -63,12 +67,16 @@ export const BUILD_IN_SERVERS: (ServerMetadata & { config: ServerConfig })[] = config: { serverName: 'Affine Cloud', features: [ - ServerFeature.Captcha, + ServerFeature.Indexer, ServerFeature.Copilot, + ServerFeature.CopilotEmbedding, ServerFeature.OAuth, ServerFeature.Payment, ], - oauthProviders: [OAuthProviderType.Google], + oauthProviders: [ + OAuthProviderType.Google, + OAuthProviderType.Apple, + ], type: ServerDeploymentType.Affine, credentialsRequirement: { password: { @@ -87,12 +95,16 @@ export const BUILD_IN_SERVERS: (ServerMetadata & { config: ServerConfig })[] = config: { serverName: 'Affine Cloud', features: [ - ServerFeature.Captcha, + ServerFeature.Indexer, ServerFeature.Copilot, + ServerFeature.CopilotEmbedding, ServerFeature.OAuth, ServerFeature.Payment, ], - oauthProviders: [OAuthProviderType.Google], + oauthProviders: [ + OAuthProviderType.Google, + OAuthProviderType.Apple, + ], type: ServerDeploymentType.Affine, credentialsRequirement: { password: { @@ -111,12 +123,16 @@ export const BUILD_IN_SERVERS: (ServerMetadata & { config: ServerConfig })[] = config: { serverName: 'Affine Cloud', features: [ - ServerFeature.Captcha, + ServerFeature.Indexer, ServerFeature.Copilot, + ServerFeature.CopilotEmbedding, ServerFeature.OAuth, ServerFeature.Payment, ], - oauthProviders: [OAuthProviderType.Google], + oauthProviders: [ + OAuthProviderType.Google, + OAuthProviderType.Apple, + ], type: ServerDeploymentType.Affine, credentialsRequirement: { password: { @@ -135,12 +151,16 @@ export const BUILD_IN_SERVERS: (ServerMetadata & { config: ServerConfig })[] = config: { serverName: 'Affine Cloud', features: [ - ServerFeature.Captcha, + ServerFeature.Indexer, ServerFeature.Copilot, + ServerFeature.CopilotEmbedding, ServerFeature.OAuth, ServerFeature.Payment, ], - oauthProviders: [OAuthProviderType.Google], + oauthProviders: [ + OAuthProviderType.Google, + OAuthProviderType.Apple, + ], type: ServerDeploymentType.Affine, credentialsRequirement: { password: {