Browse Source

fix: define NC_VERSION

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
fcdbb43ac5
  1. 2
      packages/nocodb-nest/src/Noco.ts
  2. 2
      packages/nocodb-nest/src/app.module.ts

2
packages/nocodb-nest/src/Noco.ts

@ -44,8 +44,6 @@ export default class Noco {
constructor() {
process.env.PORT = process.env.PORT || '8080';
// todo: move
process.env.NC_VERSION = '0105004';
// if env variable NC_MINIMAL_DBS is set, then disable project creation with external sources
if (process.env.NC_MINIMAL_DBS) {
process.env.NC_CONNECT_TO_EXTERNAL_DB_DISABLED = 'true';

2
packages/nocodb-nest/src/app.module.ts

@ -144,6 +144,8 @@ export class AppModule implements OnApplicationBootstrap {
// app init
async onApplicationBootstrap(): Promise<void> {
process.env.NC_VERSION = '0105004';
await this.connection.init();
await this.metaService.init();

Loading…
Cancel
Save