> For the complete documentation index, see [llms.txt](https://codedthemes.gitbook.io/berry/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codedthemes.gitbook.io/berry/getting-started/deployment.md).

# Deployment

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

### Build

To build your app for production, use **`yarn build`** command

```powershell
> yarn build
```

Build will generate `dist` a `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 a 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 v24.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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://codedthemes.gitbook.io/berry/getting-started/deployment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
