Skip to content

Commit

Permalink
TinaCMS content update
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Berman <[email protected]>
  • Loading branch information
tina-cloud-app[bot] and joshbermanssw authored Jan 8, 2025
1 parent ac83282 commit 5f8c428
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/docs/reference/media/external/do-spaces.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Using Media with Digital Ocean Spaces
next: ''
previous: ''
---

Manage **Digital Ocean Spaces media assets** in TinaCMS.
Expand All @@ -22,9 +24,7 @@ npm install next-tinacms-dos

## Connect with Digital Ocean Spaces

You need some credentials provided by Digital Ocean Spaces to set this up properly. If you do not already have an account, you can [register here](https://cloud.digitalocean.com/registrations/new) .

Add the following variables to an `.env` file.
You need some credentials provided by Digital Ocean Spaces to set this up properly. If you do not already have an account, you can [register here](https://cloud.digitalocean.com/registrations/new) . Add the following variables to an `.env` file.

```env
SPACES_ENDPOINT=<Your Digital Ocean Spaces Endpoint: ex. https://fra1.digitaloceanspaces.com> (Does not include the space name)
Expand Down Expand Up @@ -65,7 +65,7 @@ Tina's "external media provider" support requires a light backend media handler,
### Next.js Example

Set up a new API route in the `pages` directory of your Next.js app, e.g. `pages/api/dos/[...media].ts`.
Set up a new API r2oute in the `pages` directory of your Next.js app, e.g. `pages/api/dos/[...media].ts`.
Then add a new catch all API route for media.

Call `createMediaHandler` to set up routes and connect your instance of the Media Store to your Digital Ocean Spaces.
Expand Down

0 comments on commit 5f8c428

Please sign in to comment.