Rename the unified application to dashboard
This commit is contained in:
@@ -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};};
|
||||
Reference in New Issue
Block a user