fix(network): correctly resolve health.proto path for gRPC monitors and include in build
Fixes #3970 by pointing protoPath to the correct relative directory (../protos) and adding a step in the package.json build script to copy the protos directory to the final dist output.
This commit is contained in:
1 parent
da8b230cec
commit
57ddbc474f
2 files changed
+2
-2
No files matched your search
@@ -64,7 +64,7 @@ export class GrpcProvider implements IStatusProvider<GrpcStatusPayload> {
|
||||
const target = `${host}:${port}`;
|
||||
|
||||
const currentFilePath = fileURLToPath(import.meta.url);
|
||||
const protoPath = path.join(path.dirname(currentFilePath), "protos", "health.proto");
|
||||
const protoPath = path.join(path.dirname(currentFilePath), "..", "protos", "health.proto");
|
||||
const packageDefinition = this.protoLoader.loadSync(protoPath, {
|
||||
keepCase: true,
|
||||
longs: String,
|
||||
|
||||
Reference in new issue
Block a user