Skip to content

Support multiple staticDir entries in config #3105

@byvide

Description

@byvide

Fresh currently only supports a single staticDir in the config. I have a setup where I would like to serve static files from multiple directories - some shared between sites (eg robot.txt), some site specific (eg icons).

It would be helpful if staticDir could accept an array of paths, and Fresh would merge the contents.

{
   staticDir: ["static", "profile/siteA/static"]
}

Files from later entries should override earlier ones if there are conflicts.
This would eliminate the need for workarounds like manually copying files or such.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions