Files
Folo/apps/ssr/client/initialize/index.ts
T
Innei 571a991dd4 fix(ssr): load i18n before renderer
- Changed the initialization function to be asynchronous, ensuring all necessary setups are completed before rendering.
- Modified the rendering logic in the Item component to return the memoized content directly.
- Cleaned up the NormalListItem component by removing unnecessary wrapper elements and updating class names for better styling consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-30 22:11:16 +08:00

12 lines
311 B
TypeScript

import { initI18n } from "@client/i18n"
import { initializeDayjs } from "@follow/components/dayjs"
import { initAnalytics } from "./analytics"
import { initSentry } from "./sentry"
export const initialize = async () => {
initAnalytics()
initializeDayjs()
await Promise.all([initI18n(), initSentry()])
}