Skip to content

Commit

Permalink
stub out docs
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Jan 25, 2024
1 parent e98edab commit 4d55f54
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/content/2.drivers/uploadthing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# UploadThing

Store data using UploadThing.

::note{to="https://uploadthing.com/"}
Learn more about UploadThing.
::

```js
import { createStorage } from "unstorage";
import uploadthingDriver from "unstorage/drivers/uploadthing";

const storage = createStorage({
driver: uploadthingDriver({
// apiKey: "<your api key>",
}),
});
```

To use, you will need to install `uploadthing` dependency in your project:

```json
{
"dependencies": {
"uploadthing": "latest"
}
}
```

**Options:**

- `apiKey`: Your UploadThing API key. Will be automatically inferred from the `UPLOADTHING_SECRET` environment variable if not provided.

0 comments on commit 4d55f54

Please sign in to comment.