Fix: errorPage undefined — заменён на inline HTML. Версия 0.1.17
This commit is contained in:
+1
-1
@@ -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": {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
module.exports = {
|
||||
version: '0.1.16',
|
||||
version: '0.1.17',
|
||||
|
||||
// ── Среда ─────────────────────────────────────────────────────────────────
|
||||
// APP_ENV=test → тестовый стенд (жёлтый баннер в UI, можно включать тестовый API)
|
||||
|
||||
Reference in New Issue
Block a user