Skip to content

When using serve: false, root should be optional #460

@tonttu

Description

@tonttu

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

I just want to use the sendFile decorator without serving any files automatically, so I set serve: false. However, I still need to provide a valid path to root, otherwise checkRootPathForErrors complains. Now I resort to creating a dummy directory in tmpdir() just to keep this plugin happy, which seems a bit silly.

I think if serve: false is defined, checkRootPathForErrors should not be called at all.

Motivation

No response

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions