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