# 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 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 %}
