mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-10-02 01:20:11 +02:00
fix: home page shown even if disabled
This commit is contained in:
parent
91c3525b15
commit
3ad6b03b6b
@ -4,7 +4,14 @@ const { version } = require('./package.json');
|
||||
|
||||
const withPWA = require("next-pwa")({
|
||||
dest: "public",
|
||||
disable: process.env.NODE_ENV == "development",
|
||||
disable: process.env.NODE_ENV === "development",
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: /^https?.*/,
|
||||
handler: 'NetworkOnly',
|
||||
},
|
||||
],
|
||||
reloadOnOnline: false,
|
||||
});
|
||||
|
||||
module.exports = withPWA({
|
||||
|
@ -41,7 +41,7 @@ const Admin = () => {
|
||||
{
|
||||
title: "Configuration",
|
||||
icon: TbSettings,
|
||||
route: "/admin/config",
|
||||
route: "/admin/config/general",
|
||||
},
|
||||
]);
|
||||
|
||||
|
@ -43,7 +43,7 @@ const Intro = () => {
|
||||
<Text>Enough talked, have fun with Pingvin Share!</Text>
|
||||
<Text mt="lg">How to you want to continue?</Text>
|
||||
<Stack>
|
||||
<Button href="/admin/config" component={Link}>
|
||||
<Button href="/admin/config/general" component={Link}>
|
||||
Customize configuration
|
||||
</Button>
|
||||
<Button href="/" component={Link} variant="light">
|
||||
|
Loading…
Reference in New Issue
Block a user