virtheart 1860bc9f41 fix: 主题/声音水合错位 — store 水合移入 effect + getServerSnapshot 固定 SSR 快照
- 模块求值时立即读 localStorage/matchMedia 并把实时快照同时当
  getServerSnapshot 用,导致水合首帧 aria-label(Theme: dark /
  Sound playing)与 SSR 渲染的 light/paused 属性不一致
- 改为 useShellMedia 内 useEffect 首帧后才 hydrateIfNeeded()(对齐原站
  mounted flag 模式),getServerSnapshot 返回固定的 light/paused 快照;
  setTheme/setSoundEnabled 前补 hydrateIfNeeded 防止未挂载就写入
- CDP 双场景验证:预存 dark+sound=on 刷新、无存储全新加载均 0 console 错误,
  水合后 aria/class/背景全部落到正确值
2026-09-02 15:36:18 +08:00
2026-08-31 14:42:24 +08:00
2026-08-31 14:42:24 +08:00
2026-08-31 14:42:24 +08:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

S
Description
No description provided
Readme 41 MiB
Languages
TypeScript 97.7%
Python 0.8%
CSS 0.7%
Dockerfile 0.4%
JavaScript 0.4%