# Deploying on DigitalOcean

[DigitalOcean App Platform](https://www.digitalocean.com/products/app-platform) works out of the box with BCMS projects. You just need to set the right environment variables.

## Set environment variables

In the App Platform dashboard, go to your app settings and add the following environment variables:

- BCMS_API_KEY

Use the same values as in your local .env file.

---

## Reference them in code

Initialize the BCMS client using these variables:

```TYPESCRIPT
import { Client } from '@thebcms/client';

export const bcms = new Client({
    apiKey: process.env.BCMS_API_KEY,
    injectSvg: true,
});
```

---

## Static and dynamic content

If your project uses static builds, App Platform will re-deploy only when you manually trigger a build or push to Git.

For dynamic content, use BCMS with SSR frameworks like [Next.js](/docs/integrations/next-js) or [Nuxt](/docs/integrations/nuxt-js) in SSR mode.