d5a1228aac
- 暗色主题 1:1:ThemeModeProvider 原逻辑(localStorage 'theme' light/dark/system、system 跟随 prefers-color-scheme、<html> class 切换), CSS tokens 按原站 .dark 块翻值(--label/--background-deep/--code-*); shellMedia 重构为 useSyncExternalStore 单例 store(Header 与 Canvas 共享) - WebGL 主题分支:BackgroundFX 暗色渐变(#2c4bd5/#00000d/#00344C + outputMix .95/edgeIntensity -.82,原 sj 配置)、DotOverlay #0F1111、 LoadingCurtain #191b1b、玻璃模型暗色参数组(shininess 100/fresnel .72/ brightness .6/uDark=1 Hard-Light)与暗色 tint(hello #64c3ff、 footer #8e9dc4/#64c3ff) - /2026 路由:rewrite 补 2026(此前 404),workArticles 增加 /2026 占位文章 (原站内容被服务端口令保密无法读取,已注释说明);解锁屏→刷新→服务端 放行全链路 CDP 验证通过 - 逐页 <title>:app/work/[slug]/layout.tsx generateMetadata 映射作品名 (reunimos→Reunimos™),受保护 /2026 未解锁时 SSR 'Protected'(原站行为), 根标题改回原站 'HAOQI©2026'
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import type { NextConfig } from "next";
|
|
|
|
// Internal work slugs — the original site serves each detail page at the
|
|
// root path (haoqi.design/reunimos); our article pages live at
|
|
// /work/[slug], so rewrites keep the URLs 1:1 with the original.
|
|
const WORK_SLUGS = [
|
|
"reunimos",
|
|
"inspire_mono",
|
|
"wasm_design_utils",
|
|
"adrive",
|
|
"shore_icon",
|
|
"teambition",
|
|
// The passcode-protected TikTok post (original: haoqi.design/2026).
|
|
"2026",
|
|
];
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Docker 部署:构建产物自带精简 node_modules,运行 `node server.js` 即可
|
|
// (产物 .next/standalone + .next/static,见 Dockerfile)
|
|
output: "standalone",
|
|
// Next 16 blocks dev resources from "cross-origin" hosts like 127.0.0.1 by default.
|
|
allowedDevOrigins: ["127.0.0.1", "localhost"],
|
|
async rewrites() {
|
|
return {
|
|
beforeFiles: WORK_SLUGS.map((slug) => ({
|
|
source: `/${slug}`,
|
|
destination: `/work/${slug}`,
|
|
})),
|
|
afterFiles: [],
|
|
fallback: [],
|
|
};
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|