#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.
#257 introduced support for absolute path in
serveStatic, but the comments on typeServeStaticOptionsstill indicates that it does not support absolute paths:node-server/src/serve-static.ts
Line 10 in 4aa0650
This can be confusing for users.