Test server

This commit is contained in:
2024-09-17 08:51:27 +08:00
parent 2fef481e2f
commit 2ccbca6566
21 changed files with 51 additions and 137 deletions

View File

@@ -4,18 +4,15 @@ import "./globals.css";
import { TokenProvider } from "./lib/token";
const token = process.env.WS_APIKEY;
const pwdCookies = process.env.PWD;
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
if (!token)
return (
<>
<center style={{ height: "100vh" }}>Require Token Storage</center>
</>
);
if (!token) return <>Require Token Storage</>;
console.log(pwdCookies)
return (
<RootStyleRegistry>
<MqttLoader />