1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-07-02 07:20:38 +02:00

fix: home page shown even if disabled

This commit is contained in:
Elias Schneider 2023-03-10 08:40:32 +01:00
parent 91c3525b15
commit 3ad6b03b6b
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C
3 changed files with 10 additions and 3 deletions

View File

@ -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({

View File

@ -41,7 +41,7 @@ const Admin = () => {
{
title: "Configuration",
icon: TbSettings,
route: "/admin/config",
route: "/admin/config/general",
},
]);

View File

@ -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">