File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
src/frontend/servers/y-provider/src Expand file tree Collapse file tree 1 file changed +9
-4
lines changed 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