mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
fix when engine api key is not defined
This commit is contained in:
parent
6384bbb12b
commit
b9b1b96a6e
1 changed files with 5 additions and 3 deletions
|
@ -3,6 +3,8 @@ import { getSetting } from '../../modules/settings.js';
|
|||
export const engineApiKey = process.env.ENGINE_API_KEY || getSetting('apolloEngine.apiKey');
|
||||
// options now available:
|
||||
// @see https://www.apollographql.com/docs/apollo-server/api/apollo-server.html#EngineReportingOptions
|
||||
export const engineConfig = {
|
||||
export const engineConfig = engineApiKey
|
||||
? {
|
||||
apiKey: engineApiKey
|
||||
};
|
||||
}
|
||||
: undefined;
|
||||
|
|
Loading…
Add table
Reference in a new issue