aboutsummaryrefslogtreecommitdiffstats
path: root/app/config/info.ts
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-08-27 11:24:03 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-08-27 11:24:03 +0100
commit8f4f459f8cc34c89c40f67ab9f5f8c553547c881 (patch)
tree802eb1c8836fce6391dcff198ddf31e2d222c7c2 /app/config/info.ts
parentce7ec8a43d874fecec705cfc570fd864a905d1d2 (diff)
Fix build date to be constant for all renders
Diffstat (limited to 'app/config/info.ts')
-rw-r--r--app/config/info.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/config/info.ts b/app/config/info.ts
new file mode 100644
index 0000000..da1b390
--- /dev/null
+++ b/app/config/info.ts
@@ -0,0 +1,16 @@
+import os from 'os';
+
+const buildInfo = {
+ date: new Date(),
+ os: {
+ hostname: os.hostname(),
+ platform: os.platform(),
+ release: os.release(),
+ type: os.type(),
+ },
+ panulat: {
+ version: process.env.npm_package_version,
+ },
+};
+
+export default buildInfo;