Files
silma-bone-lord-bob/pages/music.tsx
T
jacob-mathison 193816f5ec feat: SiteLayout template, World nav dropdown, lore/world/characters/music/gallery pages
- Fix SiteLayout WORLD_LINKS to correct /world/* paths
- Add Spotify frame-src to CSP (next.config.ts)
- pages/world/characters.tsx: full character roster page (6 cards, Aaron Pressey credit)
- pages/world/gallery.tsx: tabbed Official/Fan Art gallery with coming-soon states
- pages/world/music.tsx: soundtrack page with Spotify album embed + YouTube CTA
- pages/world/lore.tsx: atmospheric lore with Bone Kingdom, Ledger, Origins/Prophecy placeholders
- pages/world/world.tsx: 3 region cards (Bone Kingdom, Bonefield, Pyre Gates)
- pages/{lore,world,characters,music,gallery}.tsx: 301 redirects to /world/* routes
- All world pages use SiteLayout, dark themed, proper SEO keywords
2026-04-11 10:49:34 -05:00

13 lines
348 B
TypeScript

import { useEffect } from "react";
import { useRouter } from "next/router";
export default function Redirect() {
const router = useRouter();
useEffect(() => { router.replace("/world/music"); }, [router]);
return null;
}
export async function getServerSideProps() {
return { redirect: { destination: "/world/music", permanent: true } };
}