mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
16 lines
333 B
JavaScript
16 lines
333 B
JavaScript
|
|
import WebsiteSettings from '../WebsiteSettings';
|
||
|
|
|
||
|
|
async function getDisabled() {
|
||
|
|
return !!process.env.CLOUD_MODE;
|
||
|
|
}
|
||
|
|
|
||
|
|
export default async function WebsiteSettingsPage({ params }) {
|
||
|
|
const disabled = await getDisabled();
|
||
|
|
|
||
|
|
if (!params.id || disabled) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
return <WebsiteSettings websiteId={params.id} />;
|
||
|
|
}
|