Skip to content

JSDoc for ServeStaticOptions seems not updated #355

Description

@kakkokari-gtyih

#257 introduced support for absolute path in serveStatic, but the comments on type ServeStaticOptions still indicates that it does not support absolute paths:

export type ServeStaticOptions<E extends Env = Env> = {
  /**
   * Root path, relative to current working directory from which the app was started. Absolute paths are not supported.
   */
  root?: string
  // ...
}

* Root path, relative to current working directory from which the app was started. Absolute paths are not supported.

This can be confusing for users.

Metadata

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