193816f5ec
- 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
13 lines
348 B
TypeScript
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/world"); }, [router]);
|
|
return null;
|
|
}
|
|
|
|
export async function getServerSideProps() {
|
|
return { redirect: { destination: "/world/world", permanent: true } };
|
|
}
|