StorageRoutesOptions
StorageRoutesOptions =
object
Defined in: packages/storage/src/plugin.ts:52
Options for storageRoutes.
Properties
Section titled “Properties”basePath?
Section titled “basePath?”
optionalbasePath:string
Defined in: packages/storage/src/plugin.ts:65
Base path where the storage routes are mounted. Defaults to "uploads".
Example
Section titled “Example”`storageRoutes({ handlerFile: "...", basePath: "files" })`mounts the proxy + upload routes at `/files/*`.handlerFile
Section titled “handlerFile”handlerFile:
string
Defined in: packages/storage/src/plugin.ts:58
Path to the storage handler file, relative to the React Router
appDirectory (usually app/). The file must re-export loader and
action from createStorageRouteHandlers.