Closed LauraLangdon closed 2 years ago
@LauraLangdon I don't think I understand what that validation error has to do with this PR? Could you help me understand?
@LauraLangdon I don't think I understand what that validation error has to do with this PR? Could you help me understand?
I've changed the PR name to reflect both problems with running the docs locally atm. I think the reason for the [ERROR] ValidationError: "algolia.appId" is required. If you haven't migrated to the new DocSearch infra, please refer to the blog post for instructions: https://docusaurus.io/blog/2021/11/21/algolia-docsearch-migration
error is the same one we had previously that was resolved by adding the Algolia env vars to the cloud run deployment env (see https://discord.com/channels/808215368342044692/909816751884230656/968526616676421722). I thought the error might have recurred due to the move from Google to Vercel.
Okay, so to fix the second problem we just needed to update the Docusaurus version in package-lock
.
When trying to deploy the docs locally I've encountered some errors:
[x]
[ERROR] ValidationError: themeConfig.autoCollapseSidebarCategories has been moved to themeConfig.docs.sidebar.autoCollapseCategories.
This looks like it's a direct consequence of a Docusaurus change and is easily fixed per Docusaurus' updated docs. I've made this change already.[x]
[ERROR] ValidationError: "algolia.appId" is required. If you haven't migrated to the new DocSearch infra, please refer to the blog post for instructions: https://docusaurus.io/blog/2021/11/21/algolia-docsearch-migration
The blog post linked is dated 21 November and we only started using Algolia in recent weeks, so I'm guessing the migration the error refers to isn't actually the issue in this instance. More pertinently, this is a problem we had previously and was solved by @cohix adding the env vars for Algolia to the cloud run development env. Since we switched the editor from Google to Vercel yesterday, does that maybe mean we need to add the Algolia env vars in a new place as well?