mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat(core): update build in server config (#12807)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added support for Apple as an OAuth login provider across all server configurations. - Introduced Copilot Embedding as a new server feature. - **Changes** - Updated server features to replace Captcha with Indexer in all configurations. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user