Skip to content

Bug introduced in 3.9.0: docusaurus build replicates baseUrl path as folderStructure #11433

@FelixK39

Description

@FelixK39

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

We upgraded our docusaurus version yesterday from 3.8.1 to 3.9.0 which caused a downtime of our documentation page. It appears that whatever path you specify as your baseUrl, will be replicated as folder structure in the /build path.

Image

Reproducible demo

No response

Steps to reproduce

  1. Use version 3.9.0
  2. Change your builtPath to /whatever/Random/Path
  3. run docusaurus build
  4. Your files will be created under /build/whatever/Random/Path/*

Expected behavior

Expect that a minor change does not lead to breaking changes.

Actual behavior

Minor version change broke our documentation. We expect that the docusaurus build is not changed in an incompatible way, or if it is it should be stated clearly in the CHANGELOG/RELEASELOG.

Your environment

  • Public source code: NA
  • Public site URL: NA
  • Docusaurus version used: 3.9.0
  • Environment name and version (e.g. Chrome 89, Node.js 16.4): NA, also replicable locally

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions