Rename the unified application to dashboard

This commit is contained in:
2026-11-04 23:01:32 +08:00
parent 4ec83f2603
commit 61d80f352f
223 changed files with 42 additions and 42 deletions
@@ -0,0 +1,5 @@
import type {GetServerSideProps} from 'next';
import {getGuidance,legacyDocumentPath} from '@/content/skills/guidance';
import {guidanceUrl} from '@/content/page-links';
export default function Legacy(){return null;}
export const getServerSideProps:GetServerSideProps=async({params})=>{const doc=params?.doc;const path=legacyDocumentPath(String(params?.skill),Array.isArray(doc)?doc[0]:'index');return getGuidance(path)?{redirect:{destination:guidanceUrl(path),permanent:true}}:{notFound:true};};