Files
ObsidianJournal/Daily Notes/2024/08/2024-08-28 (Wednesday).md

1.3 KiB

Work

After a lot of head-banging to get this stupid builder.io query to work for the next.js site's PDP to get product-page content, I finally found the answer. The call to builder needs to look like this:

const content = await builder
    .get('product-page', {
      query: {
        data: {
          logosProductId: `'${logosProductId}'`,
        },
      },
      prerender: false,
    })
    .toPromise();

The part I couldn't get right was the query.data.logosProductId part. The single quotes around the ID appear to be essential.

I also read up on next.js's app routing because that has effects for when/where (server or client) the data is fetched. The older getStaticProps and getServerSideProps don't exist anymore. Basically, unless 'use client;' is set somewhere, it happens on the server.

Meetings

Commerce Scrum

Mitch 1:1

Mitch Myers Went to summer course about Blender which is Python based, got started at Python. Got CS degree, used Java mostly. Started internship at ServantKeeper with Luke Vandament, came over in the acquisition. Did some desktop programming for first year, moved over to website in React with PHP on backend. Did this for 3-4 years, then acquired by Logos. Was on Giving, did something for BEP project (?), did Zapier, ended up on Commerce.

Edgar 1:1

Edgar Martinez