This is a Next.js project built with React 19 and Tailwind CSS, featuring a comprehensive UI component library based on Radix UI.
- Modern React 19 with Next.js 15
- Fully responsive design with Tailwind CSS
- Comprehensive UI component library
- Dark/light mode support
- Documentation section
- Hybrid deployment support (GitHub Pages + Vercel)
To run the development server:
npm install
npm run devOpen http://localhost:3000 with your browser to see the result.
This project is configured for automatic deployment to GitHub Pages:
- Push your changes to the main branch
- GitHub Actions will automatically build and deploy the site
- Your site will be available at https://yourusername.github.io/mcpz-web/
The project also supports deployment to Vercel for dynamic features:
- Set up a Vercel project linked to your repository
- Configure the environment variables as specified in
.env.vercel - Deploy using
npm run deploy:vercel
The project supports a hybrid deployment model that combines GitHub Pages (static) and Vercel (dynamic) deployments. See HYBRID-DEPLOYMENT.md for detailed instructions.
The project uses Next.js with conditional configuration based on the deployment target:
- For GitHub Pages: Static export with
output: 'export' - For Vercel: Standard Next.js server-side rendering and API routes
The project uses feature flags to enable or disable certain features without modifying the code directly. Feature flags are configured using environment variables.
To enable or disable features, create a .env.local file in the root directory with the following content:
# Feature Flags
# Set to 'true' to enable features, 'false' to disable them
# Deployment target
NEXT_PUBLIC_DEPLOYMENT_TARGET=development # Options: github, vercel, development
# Blog feature flag (default: false)
NEXT_PUBLIC_FEATURE_BLOG=true # Change to false to disable the blog
# Roadmap feature flag (default: true)
NEXT_PUBLIC_FEATURE_ROADMAP=true
# Discover feature flag (default: false)
NEXT_PUBLIC_FEATURE_DISCOVER=true
# Docs feature flag (default: true)
NEXT_PUBLIC_FEATURE_DOCS=true
# Pricing feature flag (default: true)
NEXT_PUBLIC_FEATURE_PRICING=trueThe project includes predefined environment files:
.env.github- Configuration for GitHub Pages deployment.env.vercel- Configuration for Vercel deployment
You can use these as templates for your deployment:
# For GitHub Pages deployment
cp .env.github .env.production
# For Vercel deployment
cp .env.vercel .env.production