Skip to content

Commit 8ddaece

Browse files
committed
feat: provide dummy value for FILE_PICKER_API_KEY
To be able to start the Connect App locally we should provide at least a dummy value for FILE_PICKER_API_KEY even if don't use file uploading. Fixes issue #3296
1 parent 1f9e422 commit 8ddaece

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/config/constants.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,10 @@ export const ROLE_CONNECT_ADMIN = 'Connect Admin'
643643
export const ROLE_ADMINISTRATOR = 'administrator'
644644
export const ROLE_CONNECT_COPILOT_MANAGER = 'Connect Copilot Manager'
645645

646+
// to be able to start the Connect App we should pass at least the dummy value for `FILE_PICKER_API_KEY`
647+
// but if we want to test file uploading we should provide the real value in `FILE_PICKER_API_KEY` env variable
648+
export const FILE_PICKER_API_KEY = process.env.FILE_PICKER_API_KEY || 'DUMMY'
646649
// FIXME .. remove defaults
647-
export const FILE_PICKER_API_KEY = process.env.FILE_PICKER_API_KEY || ''
648650
export const FILE_PICKER_SUBMISSION_CONTAINER_NAME = process.env.FILE_PICKER_SUBMISSION_CONTAINER_NAME || 'submission-staging-dev'
649651
export const FILE_PICKER_CNAME = process.env.FILE_PICKER_CNAME || 'fs.topcoder.com'
650652
export const FILE_PICKER_FROM_SOURCES = process.env.FILE_PICKER_FROM_SOURCES || ['local_file_system', 'googledrive', 'dropbox']

0 commit comments

Comments
 (0)