Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/cubejs-backend-shared/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1963,6 +1963,9 @@ const variables: Record<string, (...args: any) => any> = {

return undefined;
},
fastReloadEnabled: () => get('CUBEJS_FAST_RELOAD_ENABLED')
.default('false')
.asBoolStrict(),
};

type Vars = typeof variables;
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-server-core/src/core/CompilerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class CompilerApi {
compilerVersion = JSON.stringify(compilerVersion);
}

if (this.options.devServer) {
if (this.options.devServer || this.options.fastReloadEnabled) {
const files = await this.repository.dataSchemaFiles();
compilerVersion += `_${crypto.createHash('md5').update(JSON.stringify(files)).digest('hex')}`;
}
Expand Down
1 change: 1 addition & 0 deletions packages/cubejs-server-core/src/core/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ export class CubejsServerCore {
sqlCache: this.options.sqlCache,
standalone: this.standalone,
allowNodeRequire: options.allowNodeRequire,
fastReloadEnabled: getEnv('fastReloadEnabled'),
},
);
}
Expand Down
Loading