Skip to content

Conversation

@dfreniche
Copy link
Contributor

This is an Automated update from https://github.com/mongodb-developer/docusaurus-workshop.
We have updated the dependencies in package.json to get the latest Docusaurus (and plugin versions)

Please pull the changes locally and test them before accepting the PR. To do so:

git pull origin && npm run build && npm run serve

Thanks!

@dfreniche
Copy link
Contributor Author

Hi! From now on, every time we update the main docusaurus repo you'll receive a PR with the changes. These should normally just update docusaurus related packages and plugins. In this case, there's another change you need to appy:

Open your docusaurus.config.js file and replace the future object with this one:

future: {
    v4: {
      removeLegacyPostBuildHeadAttribute: true,
      useCssCascadeLayers: true,
    },
    experimental_faster: {
      swcJsLoader: true,
      swcJsMinimizer: true,
      swcHtmlMinimizer: true,
      lightningCssMinimizer: true,
      rspackBundler: true,
      rspackPersistentCache: true,
      ssgWorkerThreads: true,
      mdxCrossCompilerCache: true,
    },
    experimental_storage: {
      type: "localStorage",
      namespace: true,
    },
    // this should be commented out as we're generating a static site and serving it through GitHub Pages
    // See: https://docusaurus.io/blog/releases/3.4#hash-router---experimental
    // > This mode is not recommended for sites deployed through a web server.
    // experimental_router: "hash",
  },

I hope that in next updates we'll only need to review this PR locally (running docusaurus) and merge it.

Thanks and any questions are welcome!

@dfreniche
Copy link
Contributor Author

Rejecting this one as docusaurus.config.js should manually changed. This will be addressed in a future update. Also as pointed out in this issue this update overwrites the lab name and version.

@dfreniche dfreniche closed this Jul 11, 2025
@dfreniche dfreniche deleted the update-config-20250710101044 branch July 11, 2025 11:37
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