mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 08:50:50 +08:00
chore(server): add server genconfig git status check (#12202)
This commit is contained in:
@@ -123,32 +123,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"websocket": {
|
|
||||||
"type": "object",
|
|
||||||
"description": "Configuration for websocket module",
|
|
||||||
"properties": {
|
|
||||||
"transports": {
|
|
||||||
"type": "array",
|
|
||||||
"description": "The enabled transports for accepting websocket traffics.\n@default [\"websocket\",\"polling\"]\n@link https://docs.nestjs.com/websockets/gateways#transports",
|
|
||||||
"items": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
|
||||||
"websocket",
|
|
||||||
"polling"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"default": [
|
|
||||||
"websocket",
|
|
||||||
"polling"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"maxHttpBufferSize": {
|
|
||||||
"type": "number",
|
|
||||||
"description": "How many bytes or characters a message can be, before closing the session (to avoid DoS).\n@default 100000000",
|
|
||||||
"default": 100000000
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"auth": {
|
"auth": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Configuration for auth module",
|
"description": "Configuration for auth module",
|
||||||
@@ -501,6 +475,32 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"websocket": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Configuration for websocket module",
|
||||||
|
"properties": {
|
||||||
|
"transports": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "The enabled transports for accepting websocket traffics.\n@default [\"websocket\",\"polling\"]\n@link https://docs.nestjs.com/websockets/gateways#transports",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"websocket",
|
||||||
|
"polling"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"default": [
|
||||||
|
"websocket",
|
||||||
|
"polling"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxHttpBufferSize": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "How many bytes or characters a message can be, before closing the session (to avoid DoS).\n@default 100000000",
|
||||||
|
"default": 100000000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"server": {
|
"server": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Configuration for server module",
|
"description": "Configuration for server module",
|
||||||
@@ -634,6 +634,13 @@
|
|||||||
"apiKey": ""
|
"apiKey": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"providers.anthropic": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The config for the anthropic provider.\n@default {\"apiKey\":\"\"}",
|
||||||
|
"default": {
|
||||||
|
"apiKey": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"unsplash": {
|
"unsplash": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "The config for the unsplash key.\n@default {\"key\":\"\"}",
|
"description": "The config for the unsplash key.\n@default {\"key\":\"\"}",
|
||||||
@@ -641,6 +648,13 @@
|
|||||||
"key": ""
|
"key": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"exa": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The config for the exa web search key.\n@default {\"key\":\"\"}",
|
||||||
|
"default": {
|
||||||
|
"key": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"storage": {
|
"storage": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "The config for the storage provider.\n@default {\"provider\":\"fs\",\"bucket\":\"copilot\",\"config\":{\"path\":\"~/.affine/storage\"}}",
|
"description": "The config for the storage provider.\n@default {\"provider\":\"fs\",\"bucket\":\"copilot\",\"config\":{\"path\":\"~/.affine/storage\"}}",
|
||||||
|
|||||||
@@ -157,6 +157,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- optimize_ci
|
- optimize_ci
|
||||||
|
- build-server-native
|
||||||
if: needs.optimize_ci.outputs.skip == 'false'
|
if: needs.optimize_ci.outputs.skip == 'false'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -165,13 +166,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
full-cache: true
|
full-cache: true
|
||||||
|
|
||||||
|
- name: Download server-native.node
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: server-native.node
|
||||||
|
path: ./packages/backend/native
|
||||||
|
|
||||||
- name: Run Check
|
- name: Run Check
|
||||||
run: |
|
run: |
|
||||||
yarn affine init
|
yarn affine init
|
||||||
yarn affine gql build
|
yarn affine gql build
|
||||||
yarn affine i18n build
|
yarn affine i18n build
|
||||||
|
yarn affine server genconfig
|
||||||
git status --porcelain | grep . && {
|
git status --porcelain | grep . && {
|
||||||
echo "Run 'yarn affine init && yarn affine gql build && yarn affine i18n build' and make sure all changes are submitted"
|
echo "Run 'yarn affine init && yarn affine gql build && yarn affine i18n build && yarn affine server genconfig' and make sure all changes are submitted"
|
||||||
exit 1
|
exit 1
|
||||||
} || {
|
} || {
|
||||||
echo "All changes are submitted"
|
echo "All changes are submitted"
|
||||||
|
|||||||
@@ -54,17 +54,6 @@
|
|||||||
"desc": "The config for the strict throttler."
|
"desc": "The config for the strict throttler."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"websocket": {
|
|
||||||
"transports": {
|
|
||||||
"type": "Array",
|
|
||||||
"desc": "The enabled transports for accepting websocket traffics.",
|
|
||||||
"link": "https://docs.nestjs.com/websockets/gateways#transports"
|
|
||||||
},
|
|
||||||
"maxHttpBufferSize": {
|
|
||||||
"type": "Number",
|
|
||||||
"desc": "How many bytes or characters a message can be, before closing the session (to avoid DoS)."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"auth": {
|
"auth": {
|
||||||
"allowSignup": {
|
"allowSignup": {
|
||||||
"type": "Boolean",
|
"type": "Boolean",
|
||||||
@@ -147,6 +136,17 @@
|
|||||||
"desc": "The config of storage for all uploaded blobs(images, videos, etc.)."
|
"desc": "The config of storage for all uploaded blobs(images, videos, etc.)."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"websocket": {
|
||||||
|
"transports": {
|
||||||
|
"type": "Array",
|
||||||
|
"desc": "The enabled transports for accepting websocket traffics.",
|
||||||
|
"link": "https://docs.nestjs.com/websockets/gateways#transports"
|
||||||
|
},
|
||||||
|
"maxHttpBufferSize": {
|
||||||
|
"type": "Number",
|
||||||
|
"desc": "How many bytes or characters a message can be, before closing the session (to avoid DoS)."
|
||||||
|
}
|
||||||
|
},
|
||||||
"server": {
|
"server": {
|
||||||
"name": {
|
"name": {
|
||||||
"type": "String",
|
"type": "String",
|
||||||
|
|||||||
Reference in New Issue
Block a user