Skip to content

Make local an explicit baseUrl exception - #7

Merged
ThisIsTJ merged 1 commit into
mainfrom
fix/local-baseurl-exception
Sep 2, 2026
Merged

ThisIsTJ merged 1 commit into
mainfrom
fix/local-baseurl-exception

Conversation

@ThisIsTJ

@ThisIsTJ ThisIsTJ commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

baseUrl must equal /<codedApp.name>/ was written as an absolute, and four of the
five repos broke it: their local targets use baseUrl: "/" against a
<slug>-workshop-local app name. Only workshop-ixp complied.

The four were right and the rule was overstated. It exists so a build and a deploy
cannot disagree about where assets live; local is never deployed, so there is no
deploy to disagree with, and / is what makes npm run start serve at the root of
localhost.

The rule now binds hosted targets and names local as the exception. It also moves
into its own bullet — it was buried mid-way through the slug-budget arithmetic, a
separate concern, and read as an aside rather than a rule.

Includes the Release v1.7.1 bump so the five content repos can repin.

🤖 Generated with Claude Code

`baseUrl` must equal `/<codedApp.name>/` was written as an absolute, and four of
the five repos broke it: their `local` targets use `baseUrl: "/"` against a
`<slug>-workshop-local` app name. Only `workshop-ixp` complied, at
`/ixp-workshop-local/`.

The four were right and the rule was overstated. It exists so a build and a
deploy cannot disagree about where assets live -- Docusaurus compiles `baseUrl`
into every asset path and the app is served at `/<name>/`. `local` is never
deployed, so there is no deploy to disagree with, and `/` is what makes
`npm run start` serve at the root of localhost.

The rule now binds hosted targets and names `local` as the exception. It also
moves into its own bullet: it was buried in the middle of the slug-budget
arithmetic, which is a separate concern and read as an aside rather than a rule.
`workshop-ixp` moves to `/` in its own repo so all five agree.

Release v1.7.1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ThisIsTJ
ThisIsTJ merged commit 869b8de into main Sep 2, 2026
1 check passed
@ThisIsTJ
ThisIsTJ deleted the fix/local-baseurl-exception branch September 2, 2026 17:22
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.

1 participant