Skip to content

Commit b39117b

Browse files
author
Mikhail Astashkevich
committed
chore(fast-reload): support fastReloadEnabled as a server option
1 parent 405a604 commit b39117b

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

packages/cubejs-server-core/src/core/OptsHandler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,8 @@ export class OptsHandler {
488488
jwkUrl: getEnv('jwkUrl'),
489489
claimsNamespace: getEnv('jwtClaimsNamespace'),
490490
...opts.jwt,
491-
}
491+
},
492+
fastReloadEnabled: getEnv('fastReloadEnabled'),
492493
};
493494

494495
if (opts.contextToAppId && !opts.scheduledRefreshContexts) {

packages/cubejs-server-core/src/core/optionsValidate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ const schemaOptions = Joi.object().keys({
145145
// Additional system flags
146146
serverless: Joi.boolean(),
147147
allowNodeRequire: Joi.boolean(),
148+
fastReloadEnabled: Joi.boolean(),
148149
});
149150

150151
export default (options: any) => {

packages/cubejs-server-core/src/core/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ export class CubejsServerCore {
539539
context,
540540
allowJsDuplicatePropsInSchema: this.options.allowJsDuplicatePropsInSchema,
541541
allowNodeRequire: this.options.allowNodeRequire,
542+
fastReloadEnabled: this.options.fastReloadEnabled,
542543
},
543544
);
544545

packages/cubejs-server-core/src/core/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ export interface CreateOptions {
227227
serverless?: boolean;
228228
allowNodeRequire?: boolean;
229229
semanticLayerSync?: (context: RequestContext) => Promise<BiToolSyncConfig[]> | BiToolSyncConfig[];
230+
fastReloadEnabled?: boolean;
230231
}
231232

232233
export interface DriverDecoratedOptions extends CreateOptions {

0 commit comments

Comments
 (0)