[WIP] workers works! (lol) pages+migration todo

This commit is contained in:
lyc8503 committed 2025-12-31 22:19:29 +08:00
1 parent 45d86424b2
commit e050065a3c
15 files changed
+329 -154

No files matched your search

+2 -4
View File
@@ -57,9 +57,7 @@ export default function Home({
{state == undefined ? (
<Center>
<Text fw={700}>
{t('Monitor State not defined')}
</Text>
<Text fw={700}>{t('Monitor State not defined')}</Text>
</Center>
) : (
<div>
@@ -76,7 +74,7 @@ export default function Home({
export async function getServerSideProps() {
// Read state as string from KV, to avoid hitting server-side cpu time limit
const state = await getFromStore(process.env as any, 'state') as unknown as MonitorState
const state = (await getFromStore(process.env as any, 'state')) as unknown as MonitorState
// Only present these values to client
const monitors = workerConfig.monitors.map((monitor) => {