Skip to content

Commit f9caa83

Browse files
authored
feat: put export behind feature flag (#1862)
* feat: put export behind feature lfag * fix: update SHA tag configuration in deploy-prod workflow
1 parent da777c8 commit f9caa83

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ ENABLE_ASSISTANTS_RAG=false # /!\ This will let users specify arbitrary URLs tha
149149
REQUIRE_FEATURED_ASSISTANTS=false # require featured assistants to show in the list
150150
COMMUNITY_TOOLS=false # set to true to enable community tools
151151
ALLOW_IFRAME=true # Allow the app to be embedded in an iframe
152-
152+
ENABLE_DATA_EXPORT=true
153153

154154
### Tools ###
155155
# Check out public config in `chart/env/prod.yaml` for more details

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
huggingface/chat-ui
2525
tags: |
2626
type=raw,value=latest,enable={{is_default_branch}}
27-
type=sha,enable={{is_default_branch}}
27+
type=sha,enable=true,prefix=sha-,format=short,sha-len=8
2828
2929
- name: Set up Docker Buildx
3030
uses: docker/setup-buildx-action@v3

src/lib/server/api/routes/groups/misc.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ export const misc = new Elysia()
116116
throw new Error("Not admin");
117117
}
118118

119+
if (config.ENABLE_DATA_EXPORT !== "true") {
120+
throw new Error("Data export is not enabled");
121+
}
122+
119123
const zipfile = new yazl.ZipFile();
120124

121125
const promises = [

0 commit comments

Comments
 (0)