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
> yarn buildBuild 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.
Go to
.envand update:VITE_APP_BASE_NAME: /test
Last updated
Was this helpful?