Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Nov 21, 2024
1 parent 828d930 commit 0132ed2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion next-canary/src/app/SanityLive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function SanityLive() {
},
})
return () => subscription.unsubscribe()
}, [])
}, [handleLiveEvent])

return null
}
8 changes: 0 additions & 8 deletions next-canary/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type {Viewport} from 'next'
import './globals.css'
import {sanityFetch} from '@/sanity/fetch'
import {defineQuery} from 'groq'
Expand All @@ -9,13 +8,6 @@ import {TimeSince} from './TimeSince'

const THEME_QUERY = defineQuery(`*[_id == "theme"][0]{background,text}`)

export async function generateViewport(): Promise<Viewport> {
const {data} = await sanityFetch({query: THEME_QUERY})
return {
// themeColor: data?.background,
}
}

export default async function RootLayout({
children,
}: Readonly<{
Expand Down

0 comments on commit 0132ed2

Please sign in to comment.