Skip to content

Conversation

@moonmeister
Copy link
Member

  • fix: an issue where search scripts failed due to not correctly importing env vars during local dev.
  • fix: the path for next images incorrectly included the domain
  • refactor: refactored possible types to generate as needed using prebuild and predev scripts as opposed to committing to the repo and being out-of-date constantly.
  • chore: updated dependencies

@moonmeister moonmeister requested a review from Copilot May 21, 2025 17:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR cleans up code and resolves issues in local development while refactoring the way possible types are handled by dynamically generating them. Key changes include:

  • Removing the export of DOCS_PATH in favor of using repo constants.
  • Removing the committed possibleTypes.json file to rely on generated types.
  • Updating various dependency versions and scripts (including search and Tailwind) in package.json.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

File Description
src/lib/remote-mdx-files.mjs Removed DOCS_PATH export; now using internal constant for nav JSON path construction
possibleTypes.json Deleted file; switching to generating possible types dynamically
package.json Updated scripts and dependency versions to support new workflows and fixes
next.config.mjs Adjusted DOCS_PATH usage by importing repo constants and recomputing GitHub raw URL paths
Comments suppressed due to low confidence (2)

possibleTypes.json:1

  • [nitpick] The deletion of possibleTypes.json in favor of dynamically generated types is acceptable. Ensure that the generatePossibleTypes script is adequately covered by tests to catch any omissions.
Removed possibleTypes.json content

src/lib/remote-mdx-files.mjs:23

  • Removal of the export from DOCS_PATH appears intentional as next.config.mjs now sources these values from constants. Please confirm that DOCS_PATH is not used externally anywhere else.
const DOCS_PATH = `https://raw.githubusercontent.com/${DOCS_OWNER}/${DOCS_REPO}/refs/heads/${DOCS_BRANCH}/${DOCS_FOLDER}`;

@headless-platform-by-wp-engine

Check out the recent updates to your Headless Platform preview environment:

App Environment URL Build
faustjs.org preview-env-chore-cleanup-updates https://he…wered.com ✅ (logs)

Learn more about preview environments in our documentation.

@Fran-A-Dev Fran-A-Dev self-requested a review May 21, 2025 18:46
Copy link
Contributor

@Fran-A-Dev Fran-A-Dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Fran-A-Dev Fran-A-Dev merged commit 54cd254 into main May 21, 2025
4 checks passed
@Fran-A-Dev Fran-A-Dev deleted the chore-cleanup-updates branch May 21, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants