File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
src/frontend/servers/y-provider/src Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ and this project adheres to
25
25
- ⬆️(docker) upgrade backend image to python 3.13 #973
26
26
- ⬆️(docker) upgrade node images to alpine 3.21
27
27
- ✨(backend) support ` _FILE ` environment variables for secrets #912
28
+ - ✨(frontend) support ` _FILE ` environment variables for secrets #912
28
29
29
30
### Removed
30
31
Original file line number Diff line number Diff line change
1
+ import { readFileSync } from 'fs' ;
2
+
1
3
export const COLLABORATION_LOGGING =
2
4
process . env . COLLABORATION_LOGGING || 'false' ;
3
5
export const COLLABORATION_SERVER_ORIGIN =
4
6
process . env . COLLABORATION_SERVER_ORIGIN || 'http://localhost:3000' ;
5
- export const COLLABORATION_SERVER_SECRET =
6
- process . env . COLLABORATION_SERVER_SECRET || 'secret-api-key' ;
7
- export const Y_PROVIDER_API_KEY =
8
- process . env . Y_PROVIDER_API_KEY || 'yprovider-api-key' ;
7
+ export const COLLABORATION_SERVER_SECRET = process . env
8
+ . COLLABORATION_SERVER_SECRET_FILE
9
+ ? readFileSync ( process . env . COLLABORATION_SERVER_SECRET_FILE , 'utf-8' )
10
+ : process . env . COLLABORATION_SERVER_SECRET || 'secret-api-key' ;
11
+ export const Y_PROVIDER_API_KEY = process . env . Y_PROVIDER_API_KEY_FILE
12
+ ? readFileSync ( process . env . Y_PROVIDER_API_KEY_FILE , 'utf-8' )
13
+ : process . env . Y_PROVIDER_API_KEY || 'yprovider-api-key' ;
9
14
export const PORT = Number ( process . env . PORT || 4444 ) ;
10
15
export const SENTRY_DSN = process . env . SENTRY_DSN || '' ;
11
16
export const COLLABORATION_BACKEND_BASE_URL =
You can’t perform that action at this time.
0 commit comments