Skip to content

[file-router] add explicit config to disable file-router completelyΒ #3663

@taefi

Description

@taefi

Describe your motivation

According to the docs, having a routes.tsx file under src/main/frontend/ does not disable file router monitoring of the views directory, but the output is ignored. Due having this defaults, the following situation described in the docs is confusing and unnecessarily limiting, thus undesirable:

In this case, the files in src/main/frontend/views are not used for routing, and you should avoid placing any .tsx/.jsx files there, as they are still interpreted as views by the Hilla router, resulting in unnecessary processing and possible confusion.

Describe the solution you'd like

It would be less limiting if there's an explicit switch to turn of the file-router, so that users can have their tsx/jsx files under views directory freely and with less confusion.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthillaIssues related to Hilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions