feat: show version and show button if new release is available on admin page

This commit is contained in:
Elias Schneider
2022-12-30 19:23:17 +01:00
parent 167f0f8c7a
commit 71658ad39d
8 changed files with 103 additions and 47 deletions

View File

@@ -1,8 +1,14 @@
/** @type {import('next').NextConfig} */
const { version } = require('./package.json');
const withPWA = require("next-pwa")({
dest: "public",
disable: process.env.NODE_ENV == "development",
});
module.exports = withPWA({ output: "standalone" });
module.exports = withPWA({
output: "standalone", env: {
VERSION: version,
},
});