Skip to content

Commit 3d1195d

Browse files
committed
Error: Cannot find module '../../src/config/localConfig' has blocked progress on the GCP project for multiple days. This is a temporary workaround so it can be looked at without blocking
1 parent feed52f commit 3d1195d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/p2p/Self.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,20 @@ import * as ServiceQueue from './ServiceQueue'
3636
import Shardus from '../shardus'
3737
import path from 'path'
3838
import fs from 'fs/promises'
39-
import { localConfig } from '../config/localConfig'
4039
import { sleep } from '../utils'
4140

41+
interface LocalConfig {
42+
verticalScalingMode_enabled: boolean
43+
verticalScalingMode_path: string
44+
verticalScalingMode_shutdown_mode: 'sleep' | 'shutdown'
45+
}
46+
47+
export const localConfig: LocalConfig = {
48+
verticalScalingMode_enabled: false || process.env.VERTICALSCALING_ENABLED === 'true',
49+
verticalScalingMode_path: '/home/node/config' || process.env.VERTICALSCALING_PATH,
50+
verticalScalingMode_shutdown_mode: process.env.VERTICALSCALING_SHUTDOWN_MODE === 'sleep' ? 'sleep' : 'shutdown'
51+
}
52+
4253
/** STATE */
4354

4455
const startTimestamp = Date.now()

0 commit comments

Comments
 (0)