format code and no semi
This commit is contained in:
1 parent
eba65bd654
commit
87611700c3
11 files changed
+135
-157
No files matched your search
+3
-6
@@ -26,8 +26,8 @@ export default function Home({ state }: { state: MonitorState }) {
|
||||
{state === undefined ? (
|
||||
<Center>
|
||||
<Text fw={700}>
|
||||
Monitor State is not defined now, please check your worker's
|
||||
status and KV binding!
|
||||
Monitor State is not defined now, please check your worker's status and KV
|
||||
binding!
|
||||
</Text>
|
||||
</Center>
|
||||
) : (
|
||||
@@ -64,10 +64,7 @@ export async function getServerSideProps() {
|
||||
const { UPTIMEFLARE_STATE } = process.env as unknown as {
|
||||
UPTIMEFLARE_STATE: KVNamespace
|
||||
}
|
||||
const state = (await UPTIMEFLARE_STATE?.get(
|
||||
'state',
|
||||
'json'
|
||||
)) as unknown as MonitorState
|
||||
const state = (await UPTIMEFLARE_STATE?.get('state', 'json')) as unknown as MonitorState
|
||||
|
||||
return { props: { state } }
|
||||
}
|
||||
Reference in new issue
Block a user