Files
coolify-examples/node/react/README.md
Andras Bacsai d3a2a9d83b new examples
2025-12-26 11:40:00 +01:00

26 lines
448 B
Markdown

# React
A simple React example with Vite and React Router.
## Getting Started
```bash
# Install dependencies
npm install
# Development
npm run dev
# Build for production
VITE_BUILD_PUBLIC_VAR=your-value npm run build
# Start production server
npm run start
```
## Environment Variables
This is a static site (SPA), so only build-time environment variables are supported:
- `VITE_BUILD_PUBLIC_VAR` - Set during build, baked into the bundle