Berry React
v3.9.1
v3.9.1
  • Introduction
  • Package
  • Getting Started
    • Pre-requisites
    • Quick Start
    • Mock backend
    • Deployment
    • Licensing
  • Setup
    • Seed
    • To Existing Project
  • Folder Structure
  • State Management
  • Multi Language
  • Authentication
    • AWS Cognito
    • Auth0
    • Firebase
  • API Calls
  • Routing
    • New Menu
    • Login as First Page
    • Skip Login
      • VITE
      • NextJS
    • Menu from the backend
    • Remove menu render via backend
  • Theme
    • Configuration
    • Presets
    • Style
      • Color
      • Typography
      • Overrides
      • Shadows
    • Layouts
    • Logo
  • How to
    • Remove eslint
    • Remove prettier
  • Components
    • Avatar
    • AnimateButton
    • Accordion
    • Breadcrumbs
    • Chip
    • ImageList
    • MainCard
    • Transitions
    • SubCard
  • Dependencies
    • Vite js
    • Next js
  • Support
    • Roadmap
    • Changelog
    • FAQ
  • 🎺About - Berry Remix
  • Berry Eco System
Powered by GitBook
On this page
  • Build
  • Deploy to subdirectory

Was this helpful?

  1. Getting Started

Deployment

Last updated 10 months ago

Was this helpful?

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 build

Build 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.

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

nvm
nvm-windows