We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17aaaf0 commit 3889443Copy full SHA for 3889443
src/client/app/data.ts
@@ -23,7 +23,8 @@ export type SiteDataRef<T = any> = Ref<SiteData<T>>
23
export const siteDataRef: Ref<SiteData> = shallowRef(parse(serializedSiteData))
24
25
function parse(data: string): SiteData {
26
- return readonly(JSON.parse(data)) as SiteData
+ const parsed = JSON.parse(data)
27
+ return (import.meta.env.DEV ? readonly(parsed) : parsed) as SiteData
28
}
29
30
// hmr
0 commit comments