mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
add cloud_mode
This commit is contained in:
parent
9147415761
commit
db1ae3f2c7
13 changed files with 103 additions and 25 deletions
|
|
@ -4,7 +4,7 @@ import Layout from 'components/layout/Layout';
|
|||
import WebsiteDetails from 'components/pages/WebsiteDetails';
|
||||
import useShareToken from 'hooks/useShareToken';
|
||||
|
||||
export default function SharePage() {
|
||||
export default function SharePage({ settingsDisabled }) {
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
const shareId = id?.[0];
|
||||
|
|
@ -17,8 +17,16 @@ export default function SharePage() {
|
|||
const { websiteId } = shareToken;
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Layout settingsDisabled={settingsDisabled}>
|
||||
<WebsiteDetails websiteId={websiteId} />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
settingsDisabled: !!process.env.CLOUD_MODE,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue