mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-02-19 01:55:48 -05:00
fix: home page shown even if disabled
This commit is contained in:
parent
91c3525b15
commit
3ad6b03b6b
3 changed files with 10 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue