From 180d7172fe1d16b3f1c34852f8adcdaf32d573ec Mon Sep 17 00:00:00 2001 From: Bret Little Date: Tue, 13 Jun 2023 13:02:55 -0400 Subject: [PATCH] Fix Node.js nomenclature (#1002) --- packages/hydrogen/docs/generated/generated_docs_data.json | 2 +- packages/hydrogen/src/cache/InMemoryCache.doc.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/hydrogen/docs/generated/generated_docs_data.json b/packages/hydrogen/docs/generated/generated_docs_data.json index 1a3a7c4d71..e5be4d7b1f 100644 --- a/packages/hydrogen/docs/generated/generated_docs_data.json +++ b/packages/hydrogen/docs/generated/generated_docs_data.json @@ -469,7 +469,7 @@ "url": "/docs/api/hydrogen/2023-04/utilities/createstorefrontclient" } ], - "description": "> Caution:\n> This utility should only be used when deploying Hydrogen to a NodeJS environment. It should *not* be used when deploying Hydrogen to Oxygen.\n\nIf you are deploying Hydrogen to a Node environment, you can use this limited implementation of an in-memory cache. It only supports the `cache-control` header. It does NOT support `age` or `expires` headers. \n\nLearn more about [data fetching in Hydrogen](/docs/custom-storefronts/hydrogen/data-fetching/fetch-data).", + "description": "> Caution:\n> This utility should only be used when deploying Hydrogen to a Node.js environment. It should *not* be used when deploying Hydrogen to Oxygen.\n\nIf you are deploying Hydrogen to a Node.js environment, you can use this limited implementation of an in-memory cache. It only supports the `cache-control` header. It does NOT support `age` or `expires` headers. \n\nLearn more about [data fetching in Hydrogen](/docs/custom-storefronts/hydrogen/data-fetching/fetch-data).", "type": "utility", "defaultExample": { "description": "I am the default example", diff --git a/packages/hydrogen/src/cache/InMemoryCache.doc.ts b/packages/hydrogen/src/cache/InMemoryCache.doc.ts index c6050e3f9b..8e5444fe91 100644 --- a/packages/hydrogen/src/cache/InMemoryCache.doc.ts +++ b/packages/hydrogen/src/cache/InMemoryCache.doc.ts @@ -13,9 +13,9 @@ const data: ReferenceEntityTemplateSchema = { ], description: `> Caution: -> This utility should only be used when deploying Hydrogen to a NodeJS environment. It should *not* be used when deploying Hydrogen to Oxygen. +> This utility should only be used when deploying Hydrogen to a Node.js environment. It should *not* be used when deploying Hydrogen to Oxygen. -If you are deploying Hydrogen to a Node environment, you can use this limited implementation of an in-memory cache. It only supports the \`cache-control\` header. It does NOT support \`age\` or \`expires\` headers. +If you are deploying Hydrogen to a Node.js environment, you can use this limited implementation of an in-memory cache. It only supports the \`cache-control\` header. It does NOT support \`age\` or \`expires\` headers. Learn more about [data fetching in Hydrogen](/docs/custom-storefronts/hydrogen/data-fetching/fetch-data).`, type: 'utility',