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")({
|
const withPWA = require("next-pwa")({
|
||||||
dest: "public",
|
dest: "public",
|
||||||
disable: process.env.NODE_ENV == "development",
|
disable: process.env.NODE_ENV === "development",
|
||||||
|
runtimeCaching: [
|
||||||
|
{
|
||||||
|
urlPattern: /^https?.*/,
|
||||||
|
handler: 'NetworkOnly',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
reloadOnOnline: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = withPWA({
|
module.exports = withPWA({
|
||||||
|
|
|
@ -41,7 +41,7 @@ const Admin = () => {
|
||||||
{
|
{
|
||||||
title: "Configuration",
|
title: "Configuration",
|
||||||
icon: TbSettings,
|
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>Enough talked, have fun with Pingvin Share!</Text>
|
||||||
<Text mt="lg">How to you want to continue?</Text>
|
<Text mt="lg">How to you want to continue?</Text>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Button href="/admin/config" component={Link}>
|
<Button href="/admin/config/general" component={Link}>
|
||||||
Customize configuration
|
Customize configuration
|
||||||
</Button>
|
</Button>
|
||||||
<Button href="/" component={Link} variant="light">
|
<Button href="/" component={Link} variant="light">
|
||||||
|
|
Loading…
Add table
Reference in a new issue