mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-19 05:48:58 +00:00
26 lines
448 B
Markdown
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
|