Fix: errorPage undefined — заменён на inline HTML. Версия 0.1.17

This commit is contained in:
2026-07-08 22:22:02 +04:00
parent 158de70e4e
commit 9dec159e3d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ipwhitelist",
"version": "0.1.16",
"version": "0.1.17",
"description": "IP WhiteList microservice for cloud provider",
"main": "server.js",
"scripts": {
+1 -1
View File
@@ -88,7 +88,7 @@ async function start() {
if (fatalError) {
console.error(fatalError);
app.use((req, res) => {
res.status(503).type('html').send(errorPage(fatalError));
res.status(503).type('html').send('<html><head><meta charset="utf-8"><title>Авария</title><style>body{font-family:sans-serif;padding:40px;text-align:center}h1{color:#c00}</style></head><body><h1>⚙️ Ошибка конфигурации</h1><p>' + fatalError + '</p></body></html>');
});
return app;
}
+1 -1
View File
@@ -8,7 +8,7 @@
// ═══════════════════════════════════════════════════════════════════════════════
module.exports = {
version: '0.1.16',
version: '0.1.17',
// ── Среда ─────────────────────────────────────────────────────────────────
// APP_ENV=test → тестовый стенд (жёлтый баннер в UI, можно включать тестовый API)