mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
fix(version): send CryptPad version via config
This commit is contained in:
parent
400ad8d5b4
commit
6af65f0cc7
@ -2,6 +2,7 @@
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
const Package = require('../package.json');
|
||||
let config;
|
||||
const configPath = process.env.CRYPTPAD_CONFIG || "../config/config.js";
|
||||
try {
|
||||
@ -17,6 +18,7 @@ try {
|
||||
}
|
||||
config = require("../config/config.example");
|
||||
}
|
||||
config.version = Package.version;
|
||||
|
||||
let infra;
|
||||
const infraPath = process.env.CRYPTPAD_CONFIG_INFRA || "../config/infra.js";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user