Skip to content

JSDoc for ServeStaticOptions seems not updated #355

Closed

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.

Activity

  1. yusukebe commented on May 17, 2026

    @yusukebe
    Member

    @kakkokari-gtyih

    Ah, you are right. It's bad. If you have some time, can you create a PR to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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