fix(version): send CryptPad version via config

This commit is contained in:
Fabrice Mouhartem 2026-08-11 11:13:59 +02:00
parent 400ad8d5b4
commit 6af65f0cc7
No known key found for this signature in database

View File

@ -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";