Skip to content

Simplify template by removing custom handler #14

Open
@thheller

Description

The template (shadow-cljs variant) generates a src/user.clj with a custom handler. The only purpose of this handler seems to be to serve classpath resources from the public prefix. This can be done purely via shadow-cljs.edn :dev-http config and does not need a custom handler.

Just turn

{...
 :dev-http     {3000 {:root    "public"
                      :handler user/app}}}

into

{...
 :dev-http     {3000 ["public" "classpath:public"]}}

as mentioned in the docs.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions