# Deployment

Each server has unique functionality and deployment configurations. Ensure proper configuration based on your service provider's instructions.

### Build

To build your app in production use **`yarn build`** command

```powershell
> yarn build
```

Build will generate `dist` or `build` folder for VITE and NEXTJS accordingly. you can push that to your server via FTP or CICD.

### Deploy to subdirectory

If you need to deploy your app to subdirectory like: `www.example.com/test`, you need to make one change in to `.env` and rebuild.

1. Go to`.env` and update:

   ```shellscript
   VITE_APP_BASE_NAME: /test
   ```

{% hint style="info" %}
**You’ll need to have Node v18.x.x or later on your local development machine** (but it’s not required on the server). You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to easily switch Node versions between different projects.
{% endhint %}


---

# 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://codedthemes.gitbook.io/berry/v3.9.0/getting-started/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.
