[id].astro (456B)
1 --- 2 import { loadAllRuns } from "../../lib/data"; 3 4 export function getStaticPaths() { 5 const runs = loadAllRuns(); 6 const paths = []; 7 8 for (const run of runs) { 9 const shortId = run.meta.short_id; 10 if (shortId) { 11 paths.push({ 12 params: { id: shortId }, 13 props: { runId: run.meta.run_id }, 14 }); 15 } 16 } 17 18 return paths; 19 } 20 21 const { runId } = Astro.props; 22 --- 23 24 <meta http-equiv="refresh" content={`0;url=/run/${runId}`} />