Skip to content

Commit 5ee2e16

Browse files
authored
feat: add schema path as an environment variable. (#711)
fixes #695
1 parent 4f06b69 commit 5ee2e16

File tree

1 file changed

+1
-1
lines changed
  • packages/cubejs-server-core/core

1 file changed

+1
-1
lines changed

packages/cubejs-server-core/core/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class CubejsServerCore {
189189
this.driverFactory = options.driverFactory;
190190
this.externalDriverFactory = options.externalDriverFactory;
191191
this.apiSecret = options.apiSecret;
192-
this.schemaPath = options.schemaPath || 'schema';
192+
this.schemaPath = options.schemaPath || process.env.CUBEJS_SCHEMA_PATH || 'schema';
193193
this.dbType = options.dbType;
194194
this.logger = options.logger ||
195195
(process.env.NODE_ENV !== 'production' ?

0 commit comments

Comments
 (0)