/
9-10-25

9am
I was frustrated with the slug pattern in NextJS - how we pull an article title into the sidebar. With Next, components in the directory /pages/ may also export a getStaticProps function which can pull dynamic data from the server and push it into the props of the page component.

In the end, all I'm saying is...

export default function Home({ logSlugs }: Props) {
  // in here I have slugs
}

export async function getStaticProps() {
  const logs = await getAllLogs();
  const logSlugs = logs.map(l => l.slug);

  return {
    props: {
      logSlugs,
    },
  };
}
Next docs - getStaticProps
pushed to git

10am - 11:20am

some reading in circles and early celebrations.


11:30am
solved an issue with my use of Next again.

...HMTL hydration structure error, I had a container element in a Next <Link/>

11:30am
12:20pm