mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 10:05:36 +01:00
Moved env checks to server pages.
This commit is contained in:
parent
5b6292dd11
commit
784677e180
7 changed files with 18 additions and 18 deletions
|
|
@ -9,6 +9,14 @@ import '@/styles/index.css';
|
|||
import '@/styles/variables.css';
|
||||
|
||||
export default function ({ children }) {
|
||||
if (process.env.DISABLE_UI) {
|
||||
return (
|
||||
<html>
|
||||
<body></body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<html lang="en" data-scroll="0">
|
||||
<head>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue