feat: show version and show button if new release is available on admin page
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user