Getting Started
Deployment
Learn how to deploy your Metronic React application to various hosting platforms.
This guide covers the basics of deploying your Metronic React application to production.
Building for Production
# Navigate to your project directory
cd metronic-tailwind-react/typescript/vite
# Install dependencies (if needed)
npm install
# Build for production
npm run build
This creates a dist
directory with optimized files ready for deployment.
Configuration
Base URL
Metronic React uses a base URL in vite.config.ts
:
export default defineConfig({
// ... other config
base: '/metronic/tailwind/react', // Change this for your environment
// ... rest of config
});