From 357d7939f6bec4e5232ed885c25bad057c823a20 Mon Sep 17 00:00:00 2001
From: yudejp
Date: Wed, 21 Apr 2021 17:17:07 +0900
Subject: [PATCH] Add server status page
---
next.config.js | 5 +++-
pages/index.js | 1 +
pages/status.js | 61 +++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 66 insertions(+), 1 deletion(-)
create mode 100644 pages/status.js
diff --git a/next.config.js b/next.config.js
index a672f1c..3e9d6c3 100644
--- a/next.config.js
+++ b/next.config.js
@@ -11,5 +11,8 @@ module.exports = nextTranslate({
// This is the default locale you want to be used when visiting
// a non-locale prefixed path e.g. `/hello`
defaultLocale: 'ja',
- }
+ },
+ images: {
+ domains: ['mackerel.io'],
+ },
})
\ No newline at end of file
diff --git a/pages/index.js b/pages/index.js
index a524ab7..f532b3d 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -38,6 +38,7 @@ export default function Index(props) {
{status}
Powered / Generated by Mackerel.
+CPU
i7-2600RAM
DDR3 24GBOS
Arch Linux{location}
{hiroshima}{model}
Raspberry Pi 4 Model B Rev 1.2RAM
4GBOS
Raspbian GNU/Linux 10 (buster){location}
{tottori}