Skip to content

StorageRoutesOptions

StorageRoutesOptions = object

Defined in: packages/storage/src/plugin.ts:52

Options for storageRoutes.

optional basePath: string

Defined in: packages/storage/src/plugin.ts:65

Base path where the storage routes are mounted. Defaults to "uploads".

`storageRoutes({ handlerFile: "...", basePath: "files" })`
mounts the proxy + upload routes at `/files/*`.

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.