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

> 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:

    VITE_APP_BASE_NAME: /test

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 (macOS/Linux) or nvm-windows to easily switch Node versions between different projects.

Last updated

Was this helpful?