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:
EYHN
2025-06-13 11:28:49 +09:00
committed by GitHub
parent 8b0dd3c067
commit deeea3428e

View File

@@ -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: {