# Deployment

First create your platform via [etherscan](/v2-docs/protocol/platform-deployment.md) and copy the contract address once your platform has been deployed.

Since the platform client is essentially a nextjs application you can use hosted services like [Vercel](https://vercel.com/) or [Netlify](https://www.netlify.com/) to deploy. We've set up this example to be deployed with Vercel.&#x20;

Click the '▲ Deploy' button below to clone your own version of the platform client. You will be prompted to fill a few variables as part of the deployment process.

### Required Variables

`NEXT_PUBLIC_ALCHEMY_KEY` can be found by creating a new project in [Alchemy](https://dashboard.alchemyapi.io/) and then grabbing the API KEY from the project dashboard page and clicking the 'Get Key' button.

`NEXT_PUBLIC_PLATFORM_NETWORK` will be the chain your platform exists on.

```
1 = Ethereum mainnet
5 = Goerli
```

`NEXT_PUBLIC_PLATFORM_ADDRESS` will be your contract address

`ARTIVA_COOKIE_PASSWORD` will be a password to keep login cookies secure for your users. Should be at least 32 characters long.

### Optional Variables

`PINATA_API_JWT` required if pinata is being used as the IPFS adapter in `artiva-client-config.ts`. This is the JWT value for a [Pinata](https://www.pinata.cloud/) admin key.

`NEXT_PUBLIC_ZORA_API_KEY` Zora API key used to increase rate limits for any Zora API calls.

### Deploy

Deploy your platform client using the deploy link below

[![Deploy with Vercel](https://camo.githubusercontent.com/5e471e99e8e022cf454693e38ec843036ec6301e27ee1e1fa10325b1cb720584/68747470733a2f2f76657263656c2e636f6d2f627574746f6e)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fartiva-xyz%2Fplatform-client\&env=NEXT_PUBLIC_PLATFORM_ADDRESS,NEXT_PUBLIC_PLATFORM_NETWORK,NEXT_PUBLIC_ALCHEMY_KEY,ARTIVA_COOKIE_PASSWORD)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://artiva.gitbook.io/v2-docs/platform-client/deployment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
