Skip to content

[Request]: a headless (JSON-only) auth site should not need an unused ui asset mount #812

Closed

Description

@jimhoyd

Problem or use case

This came up while building the headless-auth-profile recipe for #810.

A JSON-only site (no HTML pages) that uses auth must still declare a ui asset route it never serves:

  • auth requires the ui extension.
  • Declaring ui without a route refuses activation with ui extension needs exactly one route mount.

So the recipe carries an unused /assets/ui/*: {extension: ui} route.

Proposed behavior and alternatives

Decide whether this is intended. Options:

  • Let ui activate with no mount when no dependent extension renders HTML for the site.
  • Make auth's dependency on ui conditional on HTML rendering.
  • Document why headless sites still need the mount.

Minor friction; low priority. Observed while building the recipe; not tested beyond the activation error.


Generated by Claude Code

Activity

  1. added
    enhancement
    extension
    on Sep 27, 2026
  2. jimhoyd commented on Sep 27, 2026

    @jimhoyd
    CollaboratorAuthor

    Decision (owner, 2026-09-27): document, with no code change. The auth, ui and recipe docs will explain why a JSON-only auth site declares the ui mount and that the mount is harmless.


    Generated by Claude Code

  3. added
    in-progress
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementextensionin-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions